Login ProductsSalesSupportDownloadsAbout |
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 |
"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 PM | Permanent 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 Page | Page 2 of 2 | |
Jump to Page: 1 2 |
This web page was last updated on Wednesday, April 17, 2024 at 10:35 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |