[RESOLVED]Rich Text Box woes
I'm having a few problems with the RTB control, and no ammount of googling or forum-sniffing brought the requred info.
First of all, how can I highlight the selected text(with a color, not the default)? On this forum, I've stumpled upon a technique of drawing a texbox with the text and the fill color as the background, but it's very inelegant, and hard to get right(calculating the position on variable font\box sizes is really annoying). I know RTF files are capable of holding hilight info, and the control is capable of displaying is, but how to apply it in runtime...?
Next, is there a way to detect how long is a visible line(not anything ending with a line break, but the one displayed in the control)? The font I'm using is Times New Roman, so it won't be possible to check the length by getting the characters. And words are wrapped anyway.
Thanx in advance.