LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
PalleM

"Update while typing" for Table

Status: Declined

Any idea that has received less than 5 kudos within 5 years after posting will be automatically declined.

The title says it all...

I would like to be able to have the option "update while typing" for tables (like you can do for string controls).

 

I've looked around and can't find a way to do it. 

I found a post on the discussion forums which I almost can get to work like an "update while typing".

The problem is, when editing cells in a table, I can't read the current text cursor position,

If a cell contain "ab" and I detect a keydown? event and its a "c", it's pretty important if the text cursor is "|ab", "a|b" or "ab|"... if I knew where the text cursor were, I could just put in the "c" myself, no biggie,

 

Anyone know a way? Else throw out some kudos Smiley Very Happy

4 Comments
RavensFan
Knight of NI

Why don't you use the KeyUp Event.  Then you can compare the old value of the table with the new value of the table to determine where the new character was place.

PalleM
Member

The value of the table doesn't update until you deselect the cell you are editing, and then it's too late.

RavensFan
Knight of NI

You're right.

 

Another trick I think I've read people doing.  When you do a keydown, programmatically put a string control overtop of the cell and populate it with the contents.  Then you can use update while typing on that.  Then you will just need to find a way to detect when the person leaves the "cell" so that the string control can be removed from overtop the table.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 5 kudos within 5 years after posting will be automatically declined.