Results 1 to 2 of 2

Thread: Detecting text styles in a richtextbox

  1. #1

    Thread Starter
    Hyperactive Member RealNickyDude's Avatar
    Join Date
    Nov 2002
    Location
    Watching you through the hidden camera :o
    Posts
    435

    Detecting text styles in a richtextbox

    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.
    [vbcode]
    On Error GoTo Hell
    [/vbcode]:¬) Nicky : Why not try VBCodebook.NET.

  2. #2
    Lively Member ayan's Avatar
    Join Date
    Jan 2004
    Posts
    112
    similarly, i want to know something like this. but i'm new so i just want to know how to do [something like ctrlb to bold the selected text, etc...]... anyone?

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