Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pageframe-Problem
Message
De
17/11/2016 04:05:30
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01643590
Message ID:
01643591
Vues:
60
J'aime (1)
>Hi there,
>
>in my app I want to recognize not only which tab in a pageframe becomes the active oage but also which was the last selected tab/page. Is there something like a tabchange-event in the pageframe or something like a leave-event in the page I have not seen yet? I know I can handle this with a form-property but I am curious if there is not a better way.
>
>Thanks in advance
>
>Thomas

Each page has a deactivate event.

What I do, is on every page.activate I have
this.nLastpage = thisform.nLastpage
thisform.nLastpage = n
where thisform.nLastpage is a custom property (two, one for the page and one for the pageframe) and n is the number of the actual page. I decided I wanted to hard code this value for each page, so that I can easily add/delete/move pages without having to change my code.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform