Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fire code on each Page Activate
Message
De
23/01/2007 10:20:10
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01187872
Message ID:
01188110
Vues:
27
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform