06-23-2011 04:13 AM
Hi everyone,
I have a scada application and in this application I have a menu.
This menu consists out of buttons now, see the attachment.
But I would like to change these buttons to tabs.
I can't find it in Labview.
Can someone help me with it?
Regards,
Kenny
06-23-2011 04:22 AM - edited 06-23-2011 04:24 AM
Hi,
Check out the attached vi. Its shown how to do it. Add a tab control on your front panel from the control pallette. Right the tab and click add new tab. Rename the tabs as required. Use a case structure as explained in the attached vi for selecting the different pages.
Regards,
Nitzz
(Give Kudos to good Answers and Mark it as a Solution if your problem is Solved;))
06-23-2011 05:04 AM
Hi Nitzz,
It's not as easy to make this, I think.
In the attachment you see the VI that I am using.
The menu is not visible in this front panel, but it will appear when the scada application is started.(but you can not start it in this state, I think)
But when you move the mouse over the screen you can see where the menu is.
There is also a submenu, that I also want to use with tabs.
I hope you will understand my VI, because it is very difficult to explain.
Now you have the VI, maybe you also can have a look at the print function that I am busy with.
I want, by clicking the printer button in the lower left corner, to be able to print the page.
Hopefully, everything is clear for you.
Regards,
Kenny
06-23-2011 09:15 AM
The point of a Tab control is to cluster visibility. Changing your buttons to tabs is easy, but what's the reason? Are you showing and hiding alot of controls in the application? If so, it's a perfect candidate to change to a tab control which'll handle that automatically.
/Y
06-23-2011 09:30 AM
@Cheese11 wrote:
I hope you will understand my VI, because it is very difficult to explain.
It is also very difficult to comprehend your VI. Lewis and Clarke wouldn't be able to navigate around that VI. Do you have a 50" monitor? Your block diagrams is ridiculously large. Why do you have so many event structures? That's completely unnecessary.
We can't run your VI because of all the missing subVIs, and besides we don't have the hardware, so it probably wouldn't work anyway. I don't know why you want to change the buttons to a tab, as it makes no sense to me to do so here. One thing you have in error is that you need to have the button terminals inside the event cases. The mechanical action of the buttons is latching, so you want the terminals inside the corresponding "Value Change" event cases so that LabVIEW can reset the controls.