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

Antonio,
Thank you for your input. This is very helpful.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Previous
Reply
Map
View

Click here to load this message in the networking platform