Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Avoiding resizing to a minimum
Message
De
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:
00052570
Vues:
42
>>>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.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform