Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
'Magic' Pageframe
Message
 
To
14/06/2002 08:31:25
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00668460
Message ID:
00668474
Views:
25
Hi, Jörg!

IMO that's not a big deal - but a little bit work <s>!

Let's assume you want to have 10 pages at all, but only 5 visible:
1. Create one container class for each page which contains all controls of this page. Set the visibility of the container to .F.
2. Create a form and put a pageframe with 5 pages on it.
3. Create the two buttons for page navigation.
4. Put all the 10 containers on your form:
- all at the same place, so that they looks like lieing at the pages
- the pageframe should be behind the containers (use "send to back" from the format menu)
5. If the user activates one of the pages set the current visible container to invisible and the wished container to visible.
BTW: May be you have a little bit to play with ZOrder() method after changing the visibility!
6. If the user clicks one of the navigation buttons do the following:
- Change the captions on the pages (e.g. move them to the left or to the right).
- Trigger the same like described above if the user selects any page to show the proper container!

May be that's it!
SeBaFlu
Previous
Reply
Map
View

Click here to load this message in the networking platform