Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximizing a window
Message
De
08/08/2007 08:15:24
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
Divers
Thread ID:
01246454
Message ID:
01246739
Vues:
26
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform