Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding resizing to a minimum
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00051901
Message ID:
00051905
Vues:
32
>In one of my forms, I let the user resize. However, I have some minimums. What is the best way to refuse a resize? I tried putting some code like RETURN .F. and NODEFAULT in the form Resize() event but that does not avoid it.

VFP 5 have MinHeight, MinWidth properties for forms.

Also, you can put this on the Resize event:

IF This.Width < 300
This.Width = 300
ENDIF

IF This.Height < 200
This.Height = 200
ENDIF


:)
If we exchange an apple, we both get an apple.
But if we exchange an idea, we both get 2 ideas, cool...


Gérald Santerre
Independant programmer - internet or intranet stuff - always looking for contracts big or small :)
http://www.siteintranet.qc.ca
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform