FormatTextAreaText (MaxGUI)

BlitzMax Forums/BlitzMax Beginners Area/FormatTextAreaText (MaxGUI)

po(Posted 2005) [#1]
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


EOF(Posted 2005) [#2]
Have a look at this example I knocked up as a test:



Chris C(Posted 2005) [#3]
neat example!


po(Posted 2005) [#4]
Yea, thanks.