Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Navigation Buttons that control individual Pages
Message
 
To
06/04/2000 13:57:15
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00356409
Message ID:
00356430
Views:
13
>I have a pageframe that show information from a different table on each of the pages. How do I make navigation buttons (Top, Next, Prev, etc.) That control the individual pages. I have a set of navigation buttons now, but they only control on page of the form.

Hi Philip,

If the code in navigation buttons (or in the form methods which navigation buttons call, which is preferrable) is generic i.e. does not include a particular alias references you can make the container with navigation buttons and place it at the same level as your pageframe is (on the form?) so they are both visible. Then you make sure that when you switch the pages you also SELECT the appropriate alias. Note that setting focus to the grid switches the work area to the grid.recordsource. You also can consider having a navigation toolbar. Tastrade sample provides a good sample for it. And third approach you can see in my article "Yet another approach to the forms and grids" in UT Knowledge base/Articles/Classes-VCX

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform