Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I change client area position and size?
Message
From
12/02/2004 13:35:29
 
 
To
12/02/2004 13:11:11
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00876673
Message ID:
00876766
Views:
13
>>The max properties also seem to affect autocenter. Have you noticed this?
>
>Yes, it is correct because MaxLeft and MaxTop is a limit of the form position.
>
>But MaxLeft is used only when the form is created;
>after it is ignored ( one of the bugs i found on this subject )
>
>Put two buttons B1,B2 with :
>
>B1.click
>thisform.Autocenter = .T. && <=== this ignore MaxLeft
>
>B2.click
>thisform.MaxLeft = m.thisform.MaxLeft && <== this fire C internal code
>
>
>
>The VFPT implement it for this master task:
>
>thisform.MaxLeft = sysm(0)- 40 && force the form into the desktop area
>* and put next line in moved event
>thisform.MaxLeft = m.thisform.MaxLeft
>
>* but this can to be done with the next line into the Moved event
>thisform.Left = MIN(m.thisform.Left,sysm(0)- 40)
>
>
>Then, because MaxLeft and MaxTop are passive properties, they are useless.
>
>Fabio

I think you're misunderstanding what MaxLeft and MaxTop are for. They are only for MAXIMIZED forms, not positioning a normal form in general.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform