Results 1 to 5 of 5

Thread: Formatting Text

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    I tried searching for this but couldn't find the post I was looking for so I'll just ask
    How do I color my text like vb?

  2. #2
    Guru Yonatan's Avatar
    Join Date
    Apr 1999
    Location
    Israel
    Posts
    892
    You can't! Unless you click the little smile icon.

  3. #3
    Guest
    Take a look at this thread.

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Jul 1999
    Posts
    1,800
    Whenever I try megatrons and Martinliss's I get "Out Of Stack Space" after about 5 seconds of typing

    [Edited by SteveCRM on 10-14-2000 at 01:11 PM]

  5. #5
    Fanatic Member
    Join Date
    Sep 2000
    Location
    UK.
    Posts
    728

    Try this...

    I agree. Though the code that Megatron supplied for colour coding text is good, it is only good in my opinion for changing the colour of text once, as it searches the entire text box entirely.

    I have created a class that behaves similar to the VB dev environment (colour coding), but i dont want to release the code, as i am planning on making it into an OCX.

    Few pointers though. In my class, every time a key is pressed or mouse clicked, current and last positions are recorded, then checked, and if a line change is detected, it searches the last line only. All done via Windows API functions...

    Much more efficient than searching the entire doc.

    Hope this helps

    Laterz
    Digital-X-Treme
    Contact me on MSN Messenger: [email protected]

    [VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
    / (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]

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