06-07-2016 09:20 AM
Hi, I'm writing a program that will have two buttons persistent on the GUI 'next' and 'back', so the user can go forwards or backwards through a series of settings pages.
What's the best way of implementing this?!
I am considering showing and hiding the pane decorations for each each page, when the next/back buttons are pressed, perhaps using the booleans to increment or decrement the page number (and the associated indices for all the decorations). .. putting it all in a display consumer loop as part of an event driven producer consumer structure.
Just wondered if there's a better way.
Thanks
Graham
Solved! Go to Solution.
06-07-2016 10:20 AM
I'd use a tab control, with the tabs hidden. When the user clicks the back or next button, move to the next or previous tab.
06-07-2016 03:28 PM
Thanks. I didn't use a tab control because they have a lip around the edge that's not always easy to blend with surrounding decorations, but I made the tab larger than the displayed window, so that doesn't matter. Works a treat!
06-07-2016 06:49 PM
> Thanks. I didn't use a tab control because they have a lip around the edge that's not always easy to blend
> with surrounding decorations, but I made the tab larger than the displayed window, so that doesn't matter.
> Works a treat!
Glad your problem is solved. If you need a borderless Tab Control in the future, you can:
- Start with a Tab Control from the Classic pallette
- Using the Paint tool, right-click on the border
- Press the "F" key - a white box outline will appear in the rectangle (lower left area of the Color Selection dialog)
- Select the "T" in the upper right corner
No more border.
steve