Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resizing the form
Message
 
 
To
20/03/2006 23:54:29
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01106100
Message ID:
01106392
Views:
32
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
Previous
Reply
Map
View

Click here to load this message in the networking platform