03-11-2011 03:13 PM
I have a test control vi that I am developing in which I have controls grouped into a number of different clusters. I have a control in each cluster which allows the user to move the clusters on the screen in run mode (using position property node of cluster). I would also like to allow user to move clusters to the front (or back) if the user moves clusters such that they overlap. I cannot find how to make a cluster "move to front" programmatically in run mode (I know how to do this in edit mode). But, I want to allow the user to have the flexibility to decide which cluster to "move to front". Does anyone know how to do this? Thanks, Russell
PS - I have found a invoke node/method for allowing a "move to front" for a vi front panel (http://decibel.ni.com/content/docs/DOC-12527); however, this does not work on clusters.
03-11-2011 06:04 PM
Did you consider putting the clusters on different tabs of a tab control and switching between the tabs on user input?
03-14-2011 07:53 AM
I have controls grouped into 14 different clusters corresponding to different subsytems in the test facility. I would like the user to be able to select and view ~2 to 5 of the clusters simultaneously (and the user will want to select and view a different subset of systems for different kinds of testing conducted at the facility). I currently have all clusters in the same vi and front panel with some logic that shows and hides the clusters so that the user only sees the clusters he selects to work with. I would like to allow user to move clusters to the front (or back) if the user moves clusters such that they overlap. So, I do not think that a tab control will allow me to create the functionality that I desire. Thanks for the suggestion, though.
03-14-2011 08:02 AM
Take a look at the code in the zip I posted in this thread.
It will show you how you can "Undock" a potion of your GUI similar to what is shown here.
Ben
03-14-2011 08:10 AM
Depending on the clusters you can also hide the unused portions and select the cluster to arange vertically or horizontally.
I use this trick to make toolbars where the clusters are similar in width or height. When the elements are hiden or shown the cluster will auto-resize.
This is not better than the tabs, just another possibility