07-13-2009 06:40 AM
Hello,
I've made a user interface with a little grafic description.
That description should change depending on user actions, e.g. if the user switches a button, some lines should disappear and some other lines should appear.
I thought some decorations could be shown and hidden via something like a property node, but that is not possible. Images can also not be hidden during execution of the program.
Is there any posibility to change a grafic user interface?
Johannes
LV 7.1
07-13-2009 06:46 AM
You can obtain the references of your decorations via the VI property (drop property node from application control palette and select Class VI) named 'Decorations'. The next issue is to find out which of the decorations is at which index (they have no lables). For the individual elements you can use a property node to make the decorations visible/invisible).
Felix
07-13-2009 06:48 AM
One way to change the GUI during execution is a tab control. Use a classic style control, color it with the transperant color and hide the tabs. The User will not even know it's there.
07-13-2009 08:09 AM - edited 07-13-2009 08:11 AM
Felix,
thank you for the quick response, but I don't understand.
How can I link a property node to a decoration?
What does "select class vi" mean? Do you mean from the menu > Select class > vi server > vi ?
What about > Select Class > VI Server > Generic > GObject > Decoration > Decoration?
But then I don'T knwo how to proceed
07-13-2009 08:16 AM
Here is an example.
But it does not function.
07-13-2009 08:28 AM
07-13-2009 08:33 AM
@Tim Elsay,
thank you, but I cannot open it. I use LabVIEW 7.1
07-13-2009 08:43 AM
here is how you get that property node to work but as mentioned erlyer in this thread you have to find the index to the decoration you want to hide. This code will hide every decoration!
Below is also the solution I mentioned utilizing tabs. Design each tab the way you want it and use similar code to switch between them.
07-13-2009 08:43 AM
07-13-2009 09:07 AM
Thanks to Tim for drawing what I suggested as option while I had some real work to do.
There is a trick of overcoming the index problem that was presented/devloped in the forum in the last month's:
You can place the decoration inside a cluster, so you can use the lable of the cluster to adress the decoration you want. The data type of the cluster doesn't mather for this, so you will hide the control/indicator. And you colour the cluster transparent (hint: right click with the coloring tool and use space to toggle).
Felix