Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Coding activepage method after programatically adding pa
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00941139
Message ID:
00941234
Vues:
10
THis work like a charm; however I miscalculated what I after. I have a fix amount of pages in my pageframe such as:

page1
page2
...
page20

then I'm adding pages programatically such as my goto_detailpage. I've wrote a method as you told me and what this event does is toggle a container visible=.F. if I click on this goto_detailpage. What I need is a way to turn container visible=.T. if I click on other pages. How would I go about doing that? Do I need to bind all 20 other pages to method that sets visible=.T. or is there more efficient way of doing this. Thanks

Nick




>Create a method in the form i.e. _PageEvent, code in it what You want to do when the Activate of the page occurs
>
>After additing the page You can Use:
>
> thisform.my_pf1.PageCount=thisform.my_pf1.PageCount+1
> thisform.gotodetail_page = thisform.my_pf1.PageCount
> newpage = "thisform.my_pf1.Page"+TRANSFORM(thisform.gotodetail_page) && Or retreive the name of the page some other way
> BINDEVENT(&newpage, "Activate", thisform,"_PageEvent", 0) && For last parameter read the help
>
>
>Don't forget to UNBINDEVENTS() If You remove that page.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform