09-15-2008 08:23 AM
Hello,
I have an application where I'm passing a string of text to a vi string control. When the vi opens, it is written such that, programmatically, it gives the text control focus, which is working. The control does have a border around it and it does take text from the keyboard. The problem is, I want the text to be highlighted, so the user can replace the displayed text with the new text w/o manually deleting what is there... or the user may choose to keep the existing text. How do I highlight the text programmatically?
Thanks.
09-15-2008 09:06 AM
Hi rickford66,
you can use the selection "start" and "end" property.
Mike
09-15-2008 09:17 AM
BTW, I am using LV 7.0. Does 7.0 have start and end properties, I can't find them.
Thanks.
09-15-2008 09:19 AM
Nevermind, I found them. haha
Thanks.
06-19-2017 03:56 PM
Using LabVIEW 2013, I have to set the control's KeyFocus property TRUE before setting the Numeric Text: Selection property. This may be application specific because I'm setting the control's text selection on a Mouse Up filter event, but the cursor may not already be in the corresponding control.
-Steve K