Versions des environnements
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement