Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe Page Activate vs. Click methods
Message
From
11/09/2018 01:44:54
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01661937
Message ID:
01661956
Views:
52
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform