Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Event Sequencing
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00468044
Message ID:
00468116
Vues:
32
>>Is there any way to control the sequencing of events on a form? For instance, lets say that I have to go in and modify a form and add an object to support some new data. I need it to refresh at a certain point, but because it was added late, it doesn't refresh when I desire.
>>
>>Does this make sense?
>>
>>Grace and peace,
>>
>>John
>
>I *think* I've heard that resetting the tab order of controls forces the controls to be written out in that order during a save of the form. I've not tested this myself, so I'm not sure.
>
>You could be setting yourself up for some future problems with this kind of dependency, though.

No, it is not the Tab order, but Bring To Front/Send To Back changes the order of instantiation.

Say, you placed 7 textboxes on the form.

If you select Text3 and send it to back, next time the form is run it will be instantiated first. If you use for it Bring To Front button next time Text3.Init will fire the last (just before Form.Init()). You can see it if you turn on Event Tracking for INIT()

You are right, it is not very reliable method of controlling the event sequence, as the ZOrder can be easily changed by mistake and if the controls are not overlapping you may never notice it.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform