LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disable table edit

Mouse events still work when control is disabled. Thus use mouse move event to programmatically enable it when over the scrollbar (CellPosition = 0,0 and InBounds = false). Seems to be work well.

0 Kudos
Message 11 of 13
(698 Views)

@RogerSaele wrote:

Mouse events still work when control is disabled. Thus use mouse move event to programmatically enable it when over the scrollbar (CellPosition = 0,0 and InBounds = false). Seems to be work well.


Well, there was a bug (could still edit cell 0,0), should use OR not AND. And mouse wheel does not work when disabled. Discarding mouse down seem to work better.

Message 12 of 13
(673 Views)

This is an old thread, but turns up quite high on search results. One way to prevent user changing the values is to use "Value change" event and override the change with the old value. This way scrolling and selecting cells is possible, and values can be copied from table.

 

 

table edit.PNG

 

Message 13 of 13
(508 Views)