From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
10-09-2007 02:33 PM
10-09-2007 03:20 PM
10-09-2007 03:41 PM
10-09-2007 04:01 PM
10-10-2007 05:22 AM
Macbeth,
Always use a small delay inside the while loop, else it ll eat up all your CPU resources.
10-10-2007 07:05 AM
10-10-2007 11:25 AM
10-26-2008 01:55 PM
I used Mr. Jim example, it works pretty well but is there anyway to mulitple do highlights instead of color changes?
10-27-2008 03:35 PM
Hello lavalava,
What exactly did you mean by 'multiple do highlights'? Could you please elaborate on your question?
10-27-2008 04:17 PM
Hi LavaLava,
You can change the color of more than one subset of the string, if that's what you're asking. To accomplish this, just repeat the same properties (Text.SelStart, Text.SelEnd, and Text.FontColor) in the same property node or another one. Essentially you're just selecting a different string subset and running the FontColor property on it, too.
To my knowledge, there's no way to apply BGColor or TextColor to a string subset. (At least not on regular string controls or indicators.) As discussed before, if you get really desperate you can use a picture control. I don't think there's any straightforward way to get the "highlight" effect on a subset or multiple subsets of the string. By highlight, I'm assuming you mean changing the background color?
I hope it helps...
Jim