Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximizing a window
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01246454
Message ID:
01246757
Views:
20
Try
DEFINE WINDOW _preview AT 0, 0 SIZE 1,1 IN SCREEN  CLOSE GROW SYSTEM FLOAT NAME _oPreview
_oPreview.WindowState = 2
_oPreview.Show()
>
>Thanks for the tip, but remember that desktop windows take over the entire screen when maximized, covering both the application menu and toolbar at the top and the Windows taskbar at the bottom. I want to size the window so that these elements are visible.
>
>This code works at my current screen resolution:
>
>
DEFINE WINDOW _preview AT 0, 0 SIZE 1,1 IN DESKTOP CLOSE GROW SYSTEM FLOAT NAME _oPreview
>_oPreview.WindowState = 2
>_oPreview.Show()		
>_oPreview.left = 0
>_oPreview.top = 70
>_oPreview.height = _oPreview.height - 100
>
>The challenge is to make this code generic for all screen resolutions. Does anyone have some code to share?
>
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform