Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 10 of 12 total
Thread Cool Screen sizer.
Fri, Feb 19 2010 3:39 PMPermanent Link

"Rita"
I have lots of screensizers and such but this function is
so simple I hope you can find it useful feedback on
Vista and Win 7 please great on my main form in
XP and 2003.

Add this to your mainform then for usage see below.

function TaskBarHeight: integer;
var
 hTB: HWND; // taskbar handle
 TBRect: TRect; // taskbar rectangle
begin
 hTB:= FindWindow('Shell_TrayWnd', '');
 if hTB = 0 then
   Result := 0
 else begin
   GetWindowRect(hTB, TBRect);
   Result := TBRect.Bottom - TBRect.Top;
 end;
end;

procedure TfrmMain.FormCreate(Sender: TObject);
begin
 frmMain.Top    := -1;
 frmMain.Left    := -1;
 frmMain.Height := screen.Height - taskbarheight + 2 ;  // I prefer the
look on XP with the +2
 frmMain.Width  := screen.Width;
end;

Rita

Sat, Feb 20 2010 3:36 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Rita


Did you ever try ElasticForm?

Roy Lambert
Sat, Feb 20 2010 7:04 AMPermanent Link

"Rita"

"Roy Lambert" <roy.lambert@skynet.co.uk> wrote in message
news:6DEB1F56-5C76-4C69-9A22-5C2631C481A6@news.elevatesoft.com...
>
> Did you ever try ElasticForm?
>

Yes Roy I did I have lots of them formresizers.
I like this for the main desktop form
tho less overhead.
Rita

Mon, Feb 22 2010 7:26 PMPermanent Link

"Adam H."
Hi Rita,

Thanks for the example. Works fine on Windows 7.

I was just wondering - how does this benefit over using Window.state =
wsmaximized?

Must admit, I'm an elasticform fan here too - love the way it scales,
and allows certian components (such as grids) to not scale internally so
you see 'more' on the screen with them.

Cheers

Adam.
Mon, Feb 22 2010 9:27 PMPermanent Link

"J.B. Ferguson"
Roy and Adam,

In checking ElasticForm's web site it appears that the site, and
ElasticForm, have not been updated since 2007. I couldn't find any
references to it working with D2009 or D2010. Do you have any info on
any updates, or is it stuck in D2007?

--
Jan


Adam H. wrote:

> Must admit, I'm an elasticform fan here too - love the way it scales,
> and allows certian components (such as grids) to not scale internally
> so you see 'more' on the screen with them.
Tue, Feb 23 2010 3:30 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Jan


Its stuck! The problem is that Claudia Peck (the author) runs it more as a sideline than a mainstream business. Getting hold of her has become more difficult over the years and has now reached a point of extreme difficulty (but still possible with persistence and patience).

That said its a very solid product and I've owned the source since D4 and have updated it over the years. I'm now using on D2006. The biggest problem I ever faced with it was adapting it to the TMS controls where they have "imaginative" use of some standard property names and I have to get it to handle the column fonts in DBAdvGrid

Roy Lambert
Tue, Feb 23 2010 5:45 AMPermanent Link

"J.B. Ferguson"
Thanks for the info Roy. I used to run a form sizer a long ways back
(the name escapes me right now) but it stopped working somewhere around
D7. I really haven't found an eloquent and standard type way to handle
it since.

--
Jan


Roy Lambert wrote:

> Jan
>
> Its stuck! The problem is that Claudia Peck (the author) runs it more
> as a sideline than a mainstream business. Getting hold of her has
> become more difficult over the years and has now reached a point of
> extreme difficulty (but still possible with persistence and patience).
Tue, Feb 23 2010 5:58 AMPermanent Link

"J.B. Ferguson"
Roy,

The brain kicked in after I posted my last reply. The software was
PerfectSize VCL http://www.perfectdesign.com/ . It was pretty good but
even with the code I couldn't covert it to work with D2007 (I jumped
from D7 to D2007).

--
Jan


J.B. Ferguson wrote:

> Thanks for the info Roy. I used to run a form sizer a long ways back
> (the name escapes me right now) but it stopped working somewhere
> around D7.
Tue, Feb 23 2010 6:29 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

J.B.

>The brain kicked in after I posted my last reply. The software was
>PerfectSize VCL http://www.perfectdesign.com/ . It was pretty good but
>even with the code I couldn't covert it to work with D2007 (I jumped
>from D7 to D2007).

Weird. There wasn't that much change between D7 & D2007 in the compiler or component set.

I don't have D2009+ and may well never have (no need for unicode or the pain of conversion) so I can't offer to try and see if ElasticForm can be modded. My bet though is that it will be a piece of cake.

Roy Lambert
Tue, Feb 23 2010 10:08 AMPermanent Link

"Rita"

"Adam H." <ahairsub5@removeme.jvxp.com> wrote in message
news:13FA7A09-F24C-48CC-9306-8E2E99AD9358@news.elevatesoft.com...
> Hi Rita,
>
> Thanks for the example. Works fine on Windows 7.
>
> I was just wondering - how does this benefit over using Window.state =
> wsmaximized?
>

I prefer it for the main desktop form as maximised seems to lose
the fancy part from the Statuspanel.
My main desktop looks much neater, I use mostly TzSizer that
came with the dBase components from Topaz for component
positioning. Develop in 800X600 seems to cover them all these
days.
Thanks for win 7 feedback.
HTH
Rita

Page 1 of 2Next Page »
Jump to Page:  1 2
Image