Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pageframe Page Activate vs. Click methods
Message
De
11/09/2018 01:44:54
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
01661937
Message ID:
01661956
Vues:
53
>Update: I think I was not saying it correctly. The Activate may not (I have to double check) by itself Refreshes the controls. But (in my case) the call thisform.Refresh() does it.
>
>But the question is still: why use Activate instead of Click()

Dmitry

Thisform.Refresh() will refresh the controls of the active pages (there may be more than one, if you have another pageframe inside the active page of a pageframe). For all the others, you'll have to explicitly This.Refresh() them.

This can be done in their Activate methods, or, as Christian pointed out, by cascading the Refresh() call down the pageframe hierarchy (this will work only if controls' values are already prepared, of course).

Why in Activate() instead of Click()? Because Click() will fire if you click inside the page and outside of any of its controls. So, your users might inadvertently issue a Refresh() simply by missing a control with the mouse.
----------------------------------
António Tavares Lopes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform