drewsonian
01-22-2005, 06:14 PM
I'm writing a program to control an LED board in my office.
I have a textbox in which I use communication codes like <CLR RED> to indicate a change in color for a serial LED sign. After submitting the form, those codes are translated into the proper codes for the sign.
What I'd like to do is have the text box treat the <CLR RED> string as one unit. So, when a user clicks or double clicks in between the < > symbols, everything is highlighted from one symbol to the other. Right now double clicking especially messes with things, because it selects from space to space.
For example, when double clicking on "RED" in "<CLR RED>U99.5FM Radio", the textbox would automatically select from "RED" to the beginning of "Radio" instead of "<CLR RED>"
Any ideas?
Thanks! :)
I have a textbox in which I use communication codes like <CLR RED> to indicate a change in color for a serial LED sign. After submitting the form, those codes are translated into the proper codes for the sign.
What I'd like to do is have the text box treat the <CLR RED> string as one unit. So, when a user clicks or double clicks in between the < > symbols, everything is highlighted from one symbol to the other. Right now double clicking especially messes with things, because it selects from space to space.
For example, when double clicking on "RED" in "<CLR RED>U99.5FM Radio", the textbox would automatically select from "RED" to the beginning of "Radio" instead of "<CLR RED>"
Any ideas?
Thanks! :)