12-18-2008 10:23 AM - edited 12-18-2008 10:24 AM
Dear All,
Am trying to make a generic configurable GUI where the configuration data is in a CSV (or any) file and the LabVIEW shall read the contents and accordingly generate a GUI. In current scenario, the CSV may have data for a single or multiple pages, so programatically how do I add or delete pages of a Tab control.
Link to other forum# http://forums.lavag.org/How-to-programatically-increase-number-of-pages-of-a-tab-control-t12701.html
Thanks and Regards,
Tirthankar De
12-18-2008 10:26 AM
12-18-2008 10:29 AM
12-18-2008 12:34 PM
12-18-2008 12:37 PM
12-18-2008 12:46 PM - edited 12-18-2008 12:49 PM
Imagineer,
Even if I posted a VI that would add another tab page to a tab control, you would still need to put controls and indicator on the page.
If a "completely unspecified GUI appearence" is a requirement for your project then you should look into using the Picture Control. Although it may look a little complicated, it is a lot easier than LabVIEW Scripting* plus it is actually supprted.
Ben
*LabVIEW Scripting requires a specail license from NI but allows the programatic manipulation of VIs using VIs. Let me try to put it another way. I have delivered multiple applications that make use of the Picture Control to realize GUI that can not be layed-out at development time. I don't have the guts to even dare trying to deliver one that uses scripting.
12-18-2008 08:18 PM
12-18-2008 08:32 PM
I have done what you are trying to do using subpanels. Through a combination of subpanels and VI server you can define an application framework that is reconfigurable at runtime by installing different plugins into the subpanel.
Mike...
12-19-2008 01:27 PM
Dear All,
Thanks for the valuable inputs, but still unable to achieve my goal - Create a Tab panel on the fly and as well add/delete/rename pages on the runtime.
1] I tried using the Picture Tool but unable to figure out a way to add and rename pages to a tab control ?
2] Using subpanels, is it possible to add/delete pages and as well rename the page, and also placing controls inside the tab pages ?
One approach: I can create multiple tab pages and make them invisible with each page having a blank picture to add controls dynamically. In the run-time depending on condition make required number of pages visible, but still am unable to edit the page name ?
Any help ?
Thanks and Regards,
Tirthankar De
12-19-2008 01:36 PM