Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fire code on each Page Activate
Message
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:
01187918
Vues:
27
>It works fine except for the fact that when I start my form, I do not see tabs on a pageframe (they are hidden for some reason). Once clicked, they remain visible.
>
>My pageframe class has 0 pages. I set PageCount to 2 in design-time.
>
>Thanks in advance for your help.
>
>>>>>Hi everybody,
>>>>>
>>>>>I have a pageframe class and I don't have a page class. What would be the easiest way to fire some code when the individual page is activated (in particular, I'd like to change its font properties)?
>>>>>
>>>>>Thanks in advance.
>>>>
>>>>FOR EACH oPage IN thisform.PageFrame1.Pages
>>>>    BINDEVENT(oPage,[Activate],thisform,[ActivatePage],1)
>>>>NEXT
>>>>
>>>>
>>>>**** thisform.ActivatePage code
>>>>LOCAL laoEvent[1]
>>>>AEVENTS(laoEvent,1)
>>>>FOR EACH oPage IN thisform.PageFrame1.Pages
>>>>    IF UPPER(oPage.Name) == UPPER(laoEvent[1].Name)
>>>>       oPage.Font...... = [aaaaaaaa]
>>>>    ELSE
>>>>       oPage.Font...... = [default one]
>>>>    ENDIF
>>>>NEXT
>>>>
>>>>
>>>>(not tested at all)
>>>
>>>I was thinking about something like that and I guess you would put this code in form's Init to bind only once.
>>
>>
>>
>>Sorry :-) I forgot to add that first part must be in INIT event of the form.


What happens with this:
BINDEVENT(oPage,[Activate],thisform,[ActivatePage],0)
?
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform