%tc - Text Colour
Purpose
|
To set the colour of subsequent text.
|
Syntax
|
winio@('%tc[colour]')
winio@('%tc', rgb_value)
integer rgb_value (input)
|
Modifiers
|
Grave accent (`) - used with an integer argument in order to set the text colour
for %eb (see Colouring the text
and background).
|
Description
|
colour must be one of black, white, grey, red, green, blue and yellow.
rgb_value is typically obtained by a call to RGB@. Using the value (-1L)
resets the colour of subsequent text to its default value.
|
Notes
|
The text colour for a given control can be changed dynamically (after the window
has been created) by calling the subroutine SET_CONTROL_TEXT_COLOUR@.
|
Example
|
winio@('%tc[red]')
winio@('%tc', RGB@(200,200,0))
|
See also
|
%fn - Font, %ts - Text Size, %bf - Bold Font, %it - Italic, %ul - Underlined, and the Windows API call GetSysColor(COLOR_WINDOWTEXT)
|
|
|