FormatTextAreaText (MaxGUI)
BlitzMax Forums/BlitzMax Beginners Area/FormatTextAreaText (MaxGUI)
| ||
I don't quite understand the FormatTextAreaText() function in MaxGUI. The documentation doesn't help me: FormatTextAreaText( textarea:TGadget,r,g,b,flags,pos=0,length=-1,units=1 ) I'm making a basic text editor, and I want any text that is in between (and including) double quotes to be green. I suppose I would need to search for each occurence of a quote then execute the formatting until another quote appears? Or is it simpler than that? I don't understand the flags, length, and units part of the function. All help appreciated. -Thanks |
| ||
Have a look at this example I knocked up as a test: |
| ||
neat example! |
| ||
Yea, thanks. |