Jump to content

Programatically Enable and Disable collumn in the 2D Array


Recommended Posts

Create an event for the "Mouse Down?" on the array control.  Then use the VI here to get the index that the mouse is on based the coordinates of the mouse.  Then if the column equals the value you want to not allow the user to edit, then send a TRUE to the "Discard?" terminal (all of this within the same "Mouse Down?" event).

 

I tried making a VI to show you but for some reason I can't download the VI from Lava.  There's been some minor database issues around here lately so I hope when you read this you are able to get the VI.

 

EDIT: I believe this is the same VI on NI's forums.

Edited by hooovahh
Link to comment
Thanks for reply, but i don't want to use event I want to enable and disable of column index of 2D array.

Please see below attached imageattachicon.gifArray Collumn enable disable.jpg

Each element of an array has the same properties.  Therefore you cannot disable some elements of an array using properties, you must disable all of them or enable all of them.  Is there something wrong with using an event to programatically disable them?

Link to comment

Hi

I don't think you can do that with array. Because  arrays  managed them element as unique. If you modify properties of one element , you modify all.

The only way i see to do that is to creat three state element (one position for actived, one for desactived , and one for grayed) and manage each elemnt as you want.

Eric

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.