LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I highlight text in a textbox?

I am trying to use a find function that will search through raw data and highlight a match to a search string. Is there a way in which I can do this or do I need to setup a table and use cells?
0 Kudos
Message 1 of 2
(3,498 Views)
It depends on what you want to do when you say highlight. You can select any substring from a textbox programmatically with SetCtrlAttribute setting the TextSelectionStart and TextSelectionLength properties. Remember to make the text box the active control though with SetActiveCtrl in order to see the selection. You cannot highlight by color though.

Best Regards,

Chris Matthews
Measurement Studio Support Manager
0 Kudos
Message 2 of 2
(3,498 Views)