Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
PageFrame Page Activate vs Click()
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01474171
Message ID:
01474194
Vues:
49
>>Hi,
>>
>>I have a form that has 7 pages/tabs on the PageFrame. And when user changes the page certain steps (code) have to be done. I have always put this code in the Activate method of the Page. But now I got to think that maybe it was a wrong approach. What I notice is that every time the form loses focus (when another form is opened) and then gets focus back the Activate of the page fires. So the code in the Activate executes again. This to me does seem to me wrong. So I am thinking of changing the approach and use Click() method of the page. This form has been initially created many years ago and I don't remember the logic of why I chose Activate (could have been simply because I didn't know of any better or simply didn't think much about it). And since I am concerned of breaking something, can anybody see a problem with "moving" the code from Activate to Click()? TIA.
>
>
>i use the UIEnable and do something like
>
>LPARAMETERS lEnable
>
>if IENABLE
>*** certain steps (code) have to be done
>endif


i should have mentioned, that I have a control on each page frame where i put the code in the UIEnable of that control. (I have a shape control on my pag control that resizes to the size of the page on the init and use this all the time)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform