|Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General Discussion » View Thread|
|Messages 11 to 12 of 12 total|
|Cool Screen sizer.|
|Tue, Feb 23 2010 10:42 PM||Permanent Link|
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 PM||Permanent Link|
Nice tip. I'm going to try it out today.
> 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;
> hTB: HWND; // taskbar handle
> TBRect: TRect; // taskbar rectangle
> hTB:= FindWindow('Shell_TrayWnd', '');
> if hTB = 0 then
> Result := 0
> else begin
> GetWindowRect(hTB, TBRect);
> Result := TBRect.Bottom - TBRect.Top;
> procedure TfrmMain.FormCreate(Sender: TObject);
> 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;
|« Previous Page||Page 2 of 2|
|Jump to Page: 1 2|