up Inquisit Language Reference

txcolor attribute

The txcolor attribute specifies the foreground color in which text is displayed.

Member of

<caption> <checkboxes> <clock> <defaults> <dropdown> <image> <listbox> <radiobuttons> <slider> <text> <textbox>

Syntax

/ txcolor = (red value, green value, blue value)

or

/ txcolor = color name

or

/ txcolor = color value

Parameters

red value An integer from 0 to 255 specifying the intensity of the red component.
green value An integer from 0 to 255 specifying the intensity of the green component.
blue value An integer from 0 to 255 specifying the intensity of the blue component.
color name The name of a built in color.
color value A 32-bit argb value specified as in integer or a CSS hex value (e.g., #0000FF or #00F for blue).

Remarks

The default color is black.

Examples

The following presents white text on a blue background:

<text sometext>
/ items = ("inquisit rocks")
/ txcolor = (0, 0, 255)
/ txbgcolor = (255, 255, 255)
</text>

The following presents purple text on a black background:

<text sometext>
/ items = ("inquisit rocks")
/ txcolor = (255, 0, 255)
/ txbgcolor = (0, 0, 0)
</text>

Send comments on this topic:
Copyright Millisecond Software, LLC. All rights reserved.