Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pageframe-Problem
Message
From
17/11/2016 04:05:30
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01643590
Message ID:
01643591
Views:
59
Likes (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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform