Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Maximizing a window
Message
From
08/08/2007 08:15:24
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01246454
Message ID:
01246739
Views:
25
As I wrote, you can use the sysmetric() function to find the values you need.

>Hi Sergey,
>
>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?
>
>Regards,
>Vidar
>
>>You can use NAME clause to get regerence to the window object
>>DEFINE WINDOW _preview AT 0, 0 SIZE 1,1 IN DESKTOP CLOSE GROW SYSTEM FLOAT NAME _oPreview
>>_oPreview.WindowState = 2
>>_oPreview.Show()
>>
>>>
>>>I'm trying to set up a desktop window using all available screen size starting from just below the app toolbar:
>>>
>>>DEFINE WINDOW _preview FROM 0, 0 TO _SCREEN.height, _SCREEN.width IN DESKTOP CLOSE GROW SYSTEM FLOAT
>>>
>>>Can anyone tell me how to best calculate the FROM and TO parameters?
>>>
>>>Thanks,
>>>Vidar
Previous
Reply
Map
View

Click here to load this message in the networking platform