LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Text Selection not working

The attached simple standalone VI I suggests to me that Text.SelStart and Text.SelEnd don't work as advertised.
Instead of changing the text color of only the selected characters, it changes color of all characters.
If I use constants to set these Properties, then it works right.
I type cast the input variables to the correct type, but still no help.

This VI checks syntax on a line by running it through ScanFromString.VI and capturing the offset from the offending characters.
Then it is supposed to use the offsets to highlight the offending characters in a copy of the input line.

No workie. The whole output string lights up instead of just the desired characters.

What's wrong with this VI?
0 Kudos
Message 1 of 3
(2,745 Views)
Try adding 2 to your start select to feed into end select.
 
EDIT: That seemed to work sometimes.  Othertimes no.  Then I was able to get it to work like it should.  I see strange things happening, but it isn't consistent to try to come up with a reason why.
 
EDIT2:  It seems to be related to the display mode.  In normal display, things work fine.  In \ codes display, then all characters get changed.  Hex mode seems ok.  So I think there may be a bug with this in \codes display.


Message Edited by Ravens Fan on 07-03-2008 01:48 PM

Message Edited by Ravens Fan on 07-03-2008 01:50 PM
0 Kudos
Message 2 of 3
(2,737 Views)
Hi BugBuster,
 
Here is an article that has an example about changing a subset of text:
 
 
I changed the display to code and it seemed to work just fine, but let me know if you experience the same issues with the example and what you did to replicate the bug.


Message Edited by Sappster on 07-07-2008 06:06 PM
Sappster
0 Kudos
Message 3 of 3
(2,683 Views)