LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I limit the cells in a data table so opp can't "Tab" off?

Is there any way of doing this without creating an event structure with quite a bit of code ? ...My table size is 4 X 16. I've concidered invalidating "Tab" & "CR" but would like to leave them valid.
0 Kudos
Message 1 of 8
(3,462 Views)
I do not thing there is a built in way to do this. The event structure & code looks like the only method.
0 Kudos
Message 2 of 8
(3,462 Views)
Appreciate it...I was hoping to avoid more code...I'm approaching 800K now & allready have an event structure running...I think I'll try to expand the existing one so as not to kill my memory.
0 Kudos
Message 3 of 8
(3,462 Views)
You can do it by setting the table to be a finite size (NumCols and NumRows property), and removing the horizontal and vertical scroll bars. So that if the table is currently in key focus and the operator tab's through the different cells, once reaching the last cell of the cell size restricted table itll loop back to cell (0,0).

I have attached a vi to show this.....Hope that helps....
0 Kudos
Message 4 of 8
(3,462 Views)
FYI

You can leave the scroll bars on, but since the table size is restricted, they will be disabled. There is no point for them in this situation as when you set a finite size for the table, the physical size of the table gets updated to fit in view the specified number of rows and columns....

Charles
Madry Technologies, NI Alliance Member
Sydney, Australia
www.madry.com.au
0 Kudos
Message 5 of 8
(3,462 Views)
Talk about not seeing the forest for the trees...I was looking for table size or range & went right past the obveous...Thanks...In Tennessee we say prishate-it bud.
0 Kudos
Message 6 of 8
(3,462 Views)
I agree about the forest. I did not even think of setting the number of rows with the property node. I kept trying to set it from edit mode.
0 Kudos
Message 7 of 8
(3,462 Views)
LOL @ the forest expression, tables have a myriad of features. Youd be surprise what you could use them for, e.g. using particular table properties they are extremely useful for touch screen applications.

Nice to hear I could help.

In Sydney we say no worries mate. 😃
0 Kudos
Message 8 of 8
(3,462 Views)