Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine start and end of form resize
Message
 
À
21/12/2006 11:33:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01179361
Message ID:
01179725
Vues:
11
>In my Form Resize class, I create two new properties on the form and initialize then to the current height and width. Then in the resize event, I get the new current height width for the respected properties and subtract them from the old one to get the differences. These I use to resize or move the other controls on the form. Once all the controls are resized, I update the properties I initially created with the current height and widths. During the resize event I have both the before and after sizes.
>
>check out Download #26423
>
>hope it helps.

Is not the "resize" method running all the time the left mouse is down while the form border "grabber" cursor shows. My project needs to do a process onl once - when the border is grabbed with a left click and when the border is relaeased by letting the mouse up. The process cannot fire while the border is beng moved. My project does not implement a snapto resizer - the resize events and positions of the form controls are all "bound" to the forms resize in "real time".
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform