Hi folks,

I have a richtextbox the player can type in, I also have buttons to add text styles (bold, underline, italic), these work pretty well, what I would like though is the buttons to react when the text cursor is over text with a text style, a bit like MS word.

Basically, i need to check where the cursor is, read the word it's on, if it has a bold text style, have the bold button depressed, of if it has both bold and italic, have both buttons depressed..

I hope that makes sense! Any help appreciated.