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?
Printable View
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?
You can't! Unless you click the little smile icon. :rolleyes:
Take a look at this thread.
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]
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