02-21-2013 01:48 AM
Hello all,
Currently i am using labview 2012 PDS environment. For one of my application i need to retrive the caret position of a 'table control' to validate the cell entry. Does any one know how to determine the caret position(blinking cursor position) of a table control?
Thank you.
02-21-2013 02:10 AM
Not too sure because I don't use table very often, but maybe the "edit position" property will help you.
We have two ears and one mouth so that we can listen twice as much as we speak.
Epictetus
02-21-2013 03:33 AM
Hi titou,
thank you for the reply.
What i exactly wanted is to discard some cells entry to the user upon clicking on the particular cell or upon pressing the tab button to move from one cell to another. i think, With this property i will be able to read the cell info but i wont be able to discard that particular event?
More over this edit cell functionality returns wrong index data some times. I dont know wether this is a problem or expected behaviour. i have attached the picture to make it more clear.
Not only "edit cell" property, even "selection size" property also returns wrong selection size while making row or column wise selection.
Thank you
02-21-2013 04:22 AM - edited 02-21-2013 04:22 AM
Hi,
You could try this and filter in the event structure itself.
02-21-2013 06:25 AM
Hi,
The example which you have sent uses "key up event" to trace the key pressed. But i wont be able to discard this event. What i eventually need is "not to display the cell editor text box inside the table control upon pressing tab key.
"Key down" event has discard option but it is not producing the correct cell index value some times.
thank you
02-21-2013 06:53 AM
I dont think this can be done automatically. You will need to use the Key Down event and check if the new value is in your restricted area. If that is the case, use the old value or direct it to the next allowable cell as per your requirement.
Use a property node write to set the next edit position.
02-21-2013 07:28 AM
Hi,
Thank you all.
Finally i found the way to discard the cell entry of a table control when my condition is met.
It is achieved by removing the key focus for table control.
Discard can also be achieved by activating the escape key through dll.