12-09-2012 08:19 PM - edited 12-09-2012 08:22 PM
hi,
sorry but this is a newbie question........
i have a numeric control with a default value (0.0) on my front panel.
i want to clear the contents when i click on the control so that when the user clicks the control to enter a value they dont have to delete the contents.......
any help is appreciated.......
thanks.
Solved! Go to Solution.
12-09-2012 09:01 PM
A double-click selects all the contents in the control allowing you to start typing.
12-09-2012 09:55 PM
12-09-2012 10:51 PM
What I like to do is use the Mouse Up event to select all of the text inside the numeric control so you get a similar effect to when you use the Tab key to gain focus. It is very easy to do, simply wire 0 to both the NumText.SelStart and NumText.SelEnd properties.
12-10-2012 12:36 AM
Hi loayn,
Best way is, there is a invoke node called re-initialize all to default. Invoke this node as soon as your program starts. By default in labview all the numeric control will having 0 as default value.
something like this,
Hope this will be useful
12-10-2012 12:53 AM
@Ranjeet_Singh wrote:
Hi @loayn,
Best way is, there is a invoke node called re-initialize all to default. Invoke this node as soon as your program starts. By default in labview all the numeric control will having 0 as default value.
something like this,
Hope this will be useful
Actually, what you propose does nothing to prepare a control for user input per the OPs use case.
12-10-2012 01:00 AM
Hi BillMe,
Yead i made a mistake,i didn't read the question properly. Then best way is via tab option, i thinks. By using property node he can fix the sequence of tab operation.
Is this OK ?
Thanks
12-10-2012 01:07 AM
@Ranjeet_Singh wrote:
Hi @BillMe,
Yead i made a mistake,i didn't read the question properly. Then best way is via tab option, i thinks. By using property node he can fix the sequence of tab operation.
Is this OK ?
Thanks
Actually, the other option is to tab to the numeric control. It will automatically select the current value so the user can change it. The tab order, however, has hothing to do with the issue.
12-10-2012 01:13 AM
Yes it has to do it with issue, When you have 20 controls in row & if you have not fixed the order than it will go randomly. So tab order needs to be fixed, I know tab order is not as issue, the problem can be solver via tab, i am just telling next thing programmer should take care
12-10-2012 04:03 PM
thanks for all the replies....
looks like the tabbing order is the easiest option......