Results 1 to 4 of 4

Thread: Inline RTF codes, what am i missing?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Location
    Phoenix
    Posts
    87
    according to the help files it looks like i can do inline RTF(rich text format) codes in my strings to change colors

    for example

    rtfText.text= "this should be the default color and \cf1This should be blue"

    i figure something is probably wrong with my escape sequence, or that this can't be done this way at all.

    thanks for any input

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Location
    Phoenix
    Posts
    87

    forgot to mention

    \cf1

    is for color foreground, the 1 is the equiv to vbBlue

  3. #3
    Addicted Member Shrog's Avatar
    Join Date
    Aug 1999
    Location
    Darkest Africa
    Posts
    186

    Talking Wrong Property

    If you set the Text property, the contents of the string is displayed exactly the way you typed it. You have to use the TextRTF property if you want the Rich textbox to use the tags for formatting.

    Regards
    Shrog


  4. #4

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Location
    Phoenix
    Posts
    87
    if i do this

    txtActivityLog.TextRTF = "\cf1hi"

    it still results in plain black text (should be blue)

    am i missing to other characters in the RTF escape sequence?

    many thanks

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