ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to highlight All text in Control / Indicator?

Solved!
Go to solution

 

I need a  VI, that pressing a button I could select all text in control or indicator to be able to copy it then by pressing CTRL + C.

 

 I tried playing with Property node with select-start, select-end, but no results.

 

Also didn't find any documentation or examples on how to highlight text in indicator.

 

 

Could anyone help with this?

 

Any advice/tip much appreciated. 

Thanks in advance.
0 Kudos
Message 1 of 3
(6,540 Views)
Solution
Accepted by ACiDuser

The help for 'Selection' mentions that you need to set Key Focus to the control first.

 

Also there is a system method to copy a string to the system clipboard.

SelectString.png

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 3
(6,531 Views)
Thank you! And writing directly into clipboard is even better, thanks to your tip I found where it is!
0 Kudos
Message 3 of 3
(6,527 Views)