I have a Text control string box with some initial text. I would like to highlight old text with click of mouse and type in new data from keyboard

I have a text control string box with some initial text (says: Please enter Name). I would like the operator to click on the text control box and have it automatically highlight so that when new data is typed in the old erases (all at once) and the new data is now in the text box.
I tried using the "Text.Selection" property node and when I run it and put the mouse inside the text box the initial text is highlighted and if I press "delete" on the keyboard or if I start to type in new data the initial data does delete but once I start to type new characters they erase each other. For example if I want to type in “Willi
am” I type the “W” and then the “I” but the “I” erases the “W” and now I am only left with an “I” in the text box and so on. I appreciate any help

It seems you are continuously setting the property node over and over again. This should only happen once if you mouse over it.
Create a property node for your text control with the following three items:
(1) KeyFocus (wire a "true" constant to it)
(2) Text.SelStart (Wire a "zero" constant to it)
(3) Text.SelEnd (Wire a constant containing the string length of the text).
Put this property node inside an event structure, triggered by "Mouse enter" on the string control.
(see if the attached example works for you)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Enter_Name.vi ‏23 KB

Similar Messages

Maybe you are looking for

  • Content Tracker Reports Query file modification issue - Custom Report

    Hi All, I was trying to generate a custom report using Content Tracker. I was successful in doing so. However, I found that sometimes it does not pick up the updated query file of Content Tracker reports. I made a change in my query: from SELECT * FR

  • LOV page not opened after an insert action

    (Using jdev 10.1.3.4.0.4270) I have an overview page with a detail edit/create page. On the edit/create page are some(5) LOV's. These LOV's are actualy created as : <afh:cellFormat> <af:commandLink id="lov_link_product" useWindow="true" action="dialo

  • Why is this a syntax error?

    _level0.preloaderGraphics.percent=int(Percentage) add "%" this code seems to work with no problems as a flash mx file, but it wont work with flash 8.....anyone know why?

  • Problem displaying header in Internet Explorer

    Hi, I've been posting a lot lately as I learn Dreamweaver. Anyways, I'm using a default template with a header at width=100% height=auto. I've also got a banner (a jpg file) in the div. The header displays perfectly in Firefox 3 and Safari 4 and 5, b

  • Display column name with Group by

    Hi, I am having a table with a column series which is repeating. When i want to get all the unique series and its count, in the normal sql, I am using select series,count(1) from temp_table group by series; But the same is not working in the case of