Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximizing a window
Message
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:
01246757
Vues:
21
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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform