Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fire code on each Page Activate
Message
From
23/01/2007 10:20:10
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01187872
Message ID:
01188110
Views:
19
This message has been marked as a message which has helped to the initial question of the thread.
>>>Looks like VFP8 bug with a pageframe to me. Would you please try to replicate?
>>>
>>>Thanks a lot in advance.
>>
>>I don't quite see how you create pages. Are you doing it programmatically?
>>Btw, if you decide to use BindEvent then where you're going to Unbindevent?
>
>No, I have a simple pageframe class with PageCount = 0. I added an instance of this class to a form and set PageCount = 2, set pages' names and captions. When I run my form I see a gray "thing" where the pageframe is supposed to be and I do not see an active page. I think I have to add thisform.pgf.ActivePage = 1 in form's Activate to solve the problem.
>
>Why do you think I have to unbind event? What exactly do you think is a problem?
>
>Thanks.

I vaguely remember some problems with PageCount=0. Could you just set it to 1 in class. You won't use PageCount=0 in actual forms anyway.
In regard to unbindevent, I see that Activate should be triggered in some way, i.e. some code should fire once only and not every time when you activate a page. However, I understand that you may code eventhandler to get this functionality. Frankly, I never subclassed pageframes.
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform