Results 1 to 11 of 11

Thread: [RESOLVED]Rich Text Box woes

Threaded View

  1. #1

    Thread Starter
    Addicted Member Max_aka_NOBODY's Avatar
    Join Date
    Jul 2004
    Location
    Amman, Jordan
    Posts
    179

    Resolved [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.
    Last edited by Max_aka_NOBODY; Apr 14th, 2005 at 07:59 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width