Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding resizing to a minimum
Message
 
 
À
30/09/1997 23:03:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00051901
Message ID:
00052612
Vues:
44
>>>>I'm not laughing because I have used those properties as well. I did not find this as "automatic" as I thought it would be. I could still resize the form to less than the MinHeight/MinWidth than what I specified. I had to resort to the code Gérald Santerre suggested in his response.
>>>
>>>In my case, I haven't find a window to bypass those limit. Can you give me the trick in order to bypass it?
>>
>>Gérald's solution will bypass the user resizing a window too small and revert the size back to a minimum. But if you are looking to revert the window size back to its last acceptable size, you would have to add 2 form properties and store the last acceptable dimensions in them. Then revert the form back to those values if the use resizes too small. I prefer reverting back to the minimum size to "minimize" user frustration. Although there are some user's I would like to mess with -- like make an Icon relocate itself when they position the mouse cursor over it so they can never click on it or drag it.
>
>Well, I still don't see, by having defined MinWidth and MinHeight, how we can go within those limits. From what I understand in the first message, it seems that there is a something a user can do in order to resize the window smaller to the defined MinWidth and MinHeight.

Right. When I tried using the MinWidth and MinHeight properties, I could still resize the form to something smaller and keep it that way -- VFP did not automatically resize the form back to my minimum size. Either I do not understand what the those 2 properties are supposed to do/prevent or they do not work. I had to resort to code in Resize method.
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform