Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Page.Activate()/form.Activate() problem
Message
From
01/12/2003 14:58:43
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, United States
 
 
To
01/12/2003 14:14:56
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00854696
Message ID:
00854798
Views:
15
Fabio,
Thanks for the suggestion. I've fixed the problem by some checks in the page activate that determines if it should fire based on the control that last had focus. If the parent of the control that last had focus is not the page in question, skip most of the code in the method.

I capture that info anyway so it wasn't too hard. As far as this being a bug, I agree.

Gary

>Hi Gary,
>
>this is a bug.
>It occurs only for the first pageframe on the form, also if it is not visible.
>
>Then, for a possible workaround, use another bug,
>put one catch pageframe on the form:
>
>Pageframe1.Name='CaptureActivate' with PageCount=0 and visible = .F.
>
>
>Then add your pageframe to the form, for this VFP not fire the Activate event.
>
>Fabio
>
>P.S. For a old form, add the catch pageframe and use "Send to Back" for set the 'CaptureActivate' as the first control on the form.
Previous
Reply
Map
View

Click here to load this message in the networking platform