Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximized Form
Message
From
13/08/2002 09:32:55
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/08/2002 09:26:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00689088
Message ID:
00689092
Views:
27
>I have a form set to maximum state. I also have a banner that scrolls accross the screen. I want to place the banner in relation to the center of the form. Is there any way to get the height of the maximized form to use in a calculation for my banner? It seems like the new form height is not set until after the form init event is ran.

Steve,
I got this from George Tasker and works reliably.

#define SM_CXSCREEN 0 && Screen width in pixels
#define SM_CYSCREEN 1 && Screen height in pixels
#define SM_CXFULLSCREEN 16 && Client area width
#define SM_CYFULLSCREEN 17 && Client area height
DECLARE INTEGER GetSystemMetrics IN Win32API;
INTEGER nIndex
* Example
? GetSystemMetrics(SM_CXSCREEN)
? GetSystemMetrics(SM_CYSCREEN)
? GetSystemMetrics(SM_CXFULLSCREEN)
? GetSystemMetrics(SM_CYFULLSCREEN)

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform