Icon View Thread

The following is the text of the current message along with any replies.
Messages 11 to 12 of 12 total
Thread Cool Screen sizer.
Tue, Feb 23 2010 10:42 PMPermanent Link

"Adam H."
I can confirm that ElasticForm works fine in D2007. Not sure what the
difference is between it and PerfectSize, but I'm doing fine so far.
Wed, Feb 24 2010 4:41 PMPermanent Link

Sean
Nice tip. I'm going to try it out today.

Sean

Rita wrote:
> 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
>
>
« Previous PagePage 2 of 2
Jump to Page:  1 2
Image