LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

swipe left or right

Solved!
Go to solution

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

0 Kudos
Message 1 of 4
(3,428 Views)
Solution
Accepted by grahamwebb

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.

Message 2 of 4
(3,407 Views)

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!

0 Kudos
Message 3 of 4
(3,361 Views)

> 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

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 4 of 4
(3,329 Views)