Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I change client area position and size?
Message
De
12/02/2004 13:11:11
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00876673
Message ID:
00876754
Vues:
12
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform