func_maxgui_text areas_formattextareatext.rst 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. .. _func_maxgui_text areas_formattextareatext:
  2. ==================
  3. FormatTextAreaText
  4. ==================
  5. FormatTextAreaText -
  6. Description
  7. ===========
  8. .. code-block:: blitzmax
  9. FormatTextAreaText( textarea:TGadget,r,g,b,flags,pos=0,length=TEXTAREA_ALL,units=TEXTAREA_CHARS )
  10. Format the color and style of some text in a TextArea gadget.
  11. The @r, @g and @b parameters represent the @{r}ed, @{g}reen and @{b}lue components (0..255)
  12. which, when combined, represent the new text color for the the sepecified region
  13. of characters.
  14. The @flags parameter can be a combination of the following values:
  15. [ @Constant | @Meaning
  16. * TEXTFORMAT_BOLD | Bold
  17. * TEXTFORMAT_ITALIC | Italic
  18. * TEXTFORMAT_UNDERLINE | Underline
  19. * TEXTFORMAT_STRIKETHROUGH | StrikeThrough
  20. ]
  21. Depending on the value of the units parameter the position and length parameters specify
  22. the character position and number of characters or the starting line and the number
  23. of lines that FormatTextAreaText will modify.
  24. See Also: #LockTextArea and #CreateTextArea
  25. Parameters
  26. ==========
  27. Return Values
  28. =============
  29. Nothing.
  30. Examples
  31. ========
  32. See Also
  33. ========