Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
PageFrame Page Activate vs Click()
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
PageFrame Page Activate vs Click()
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01474171
Message ID:
01474171
Views:
119
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.
"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
Next
Reply
Map
View

Click here to load this message in the networking platform