Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resizing the form
Message
 
À
20/03/2006 23:54:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Divers
Thread ID:
01106100
Message ID:
01106392
Vues:
33
Hi Steve,

You mean windows Taskbar?

If your form ShowWindow property is 0 or 1 then you can maximize only inside of VFP. If you have your Windows taskbar "Keep the taskbar on top of other windows" property set as a True then maximized VFP doesn't cover the taskbar and form doesn't cover the taskbar either. When ShowWindow property is set to 0 or 1 then you can set form property MaxHeight to restrict your form height. f.ex write next value to the MaxHeight without parenthes "=SYSMETRIC(2)-40" to restrict form height screen resolution minus 40.

Somehow MaxHeight doesn't work if ShowWindow is set to 2 but then you can use height_assign like follows:

LPARAMETERS vNewVal
vNewVal = IIF(vNewVal > SYSMETRIC(2)-40, SYSMETRIC(2)-40, vNewVal)
THIS.HEIGHT = m.vNewVal

Use same principal to the Width if you have to restrict it too.

AT
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform