07-22-2014 11:08 AM
Hi,
I have a string control on my UI and I would like to differentiate between different mouse down events, i.e, to be able to differentiate a click on the contour or label of the controller vs a click on the center (control enters in "edit" mode)
The reason is that sometimes if the user does not click in the center but in the contour of the control, Labview fires the Mouse Down event but the keys typed are not registered...
Is there any way to distinguish both?
Thanks a lot for your help
Solved! Go to Solution.
07-22-2014 11:11 AM
Set the string control to "update while typing" and use a "value changed" event instead. Now the event fires whenever a new character is entered.
07-22-2014 11:18 AM
Didn't know that one!
Thank you very much altenbach! ![]()
07-23-2014 03:55 AM
Actually, your soultion will do the job... but still.. is there any way to detect when the control is in "edit" mode?
07-23-2014 04:52 AM
When you get the mouse down event you get coordinates of the mouse click. You also get the refernce to the control and for string control you can go to Text.Position (which give top and left coordinate of the text) and Text.Bounds (width, height). Do some math and you got the solution.