Posted: March 21 2004 at 15:46 | IP Logged
|
|
|
Phil,
You can use the formula ph_setcctab from a macro to set the tab, ph_getcctab will return the value of the current tab. I set up two buttons to scroll back and forth through the tabs by reading the current value and adding to or subtracting from it. By putting a min-max value in the macro you can allow the scrolling to wrap around.
Exp:
Pressing a button named -> calls a macro which adds 1 to the value in ph_getcctab. If the value is less than or equal to a global variable I named maxtabs I pass the value to the ph_setcctab formula, if not I send a 1 which takes me back to tab 1.
Pressing a button named <- calls a macro which subtracts 1 from the value in ph_getcctab. If the value is greater than or equal to one I pass it to ph_setcctab, otherwise I send the value of my maxtabs global which jumps to the highest tab number.
Good luck..
SA
__________________ SteveA
|