Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Form Activate event.....
Message
 
 
À
13/05/2000 11:29:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00369066
Message ID:
00369356
Vues:
21
>>Thanks for your answer.
>>In what way could you foul up (LISAG) order?
>
>You could probably call Show() from the Load() event. It would put it out of order, I don't think anything bad would happen though.

That could depend on whether you are using a framework or not. Some frameworks set properties as the form instantiates to determine if certain things have happened. By messing up the order, you could cause unexpected results.

One other way to mess up the instantiation order is to issue a SetFocus on a control during the Init of the form. In order for VFP to set the focus to the control, it first has to Activate the form. You end up with something like the following:

Form Init calls Control.SetFocus
Form.Activate
Form.GotFocus
Control.GotFocus
Control.GotFocus
Form.Show
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform