Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to determine start and end of form resize
Message
De
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:
01179596
Vues:
9
>My project requires a process be run when a form resize starts, and another process when it ends.
>
>My hope was that a form mouse down would fire but it seems not to be available when the mouse pointer changes to the resize "arrows".
>
>I also looked at the HELP BINDEVENTS using the _SCREEN resize example but it seems to call the "delegate" resize through the entire resize event (while the mouse is down.
>
>If there is a way to assess a process at "the beginning of" and "at the end", but "not during" the form's resize.
>
>I haven't yet shoppeded for an API message service.
>
>AHA!

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.
Greg Reichert
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform