07-01-2014 06:35 AM
Hi All,
I have created a array of cluster control. The cluster consists of two string controls and a boolean button control. This boolean should be visible only on mouse over of the array index. For example if the pointer is on 2nd index of array, the 2nd boolean should be visible and rest of the array boolean should be invisible.
Please suggest me if there is any other ways to implement this.
07-01-2014 07:28 AM
Not with arrays. For arrays, all of the properties of every element must be exactly the same. This includes visibility.
07-01-2014 08:07 AM
Thanks for your reply. Can you please suggest me some other way to achieve this?
07-01-2014 09:38 AM
I am having a hard time visualizing what you are looking for. Could you please post a VI or image of what you have and want?
Thanks!
07-01-2014 10:13 AM
This sort of thing gets ugly fast
as an example of how ugly it can get:
07-01-2014 12:36 PM
Can you explain why you want to build an array that way? Cant you keep it as clusters and play around with their properties .
07-01-2014 02:09 PM
@crossrulz wrote:
Not with arrays. For arrays, all of the properties of every element must be exactly the same. This includes visibility.
You can customize a boolean so the two states show a different picture. One of the states can be transparent. To only show some array elements, simply change them to the transparent boolean state. Of course this solution means that you cannot use the boolean data for other information.
07-02-2014 12:03 AM
I am scanning the machines which are connected with in a local network. List of machies connected are displayed in the cluster elements which are:
1. String1 - Client IP adress.
2. String2 - Client System Name.
3. Connect button
The Connect button should be visible on mouse over of respective array index.
For more information i have attached a screen shot of the vi which i am working.
07-02-2014 12:20 AM - edited 07-02-2014 12:22 AM
@RoopeshV wrote:
The Connect button should be visible on mouse over of respective array index.
You need to clarify what that means, because you don't even show the index terminal.
Do you possibly mean it should become visible when hovering over one of the array elements? (here my trick making the true state transparent would work)
07-02-2014 07:16 AM
You could eliminate the boolean control in the cluster and set it up so that just clicking on the machine name in the array list will perform the action.
The code to accomplish this is in the Lava Repository at this link http://lavag.org/files/file/60-array-point-to-rowcol/