poITextAttribute SetColor
Sets the font color.
Syntax
poITextAttribute_handle SetColor color
Application
HyperView Tcl Modify
Description
This command sets the font color.
Inputs
- color
- The RGB color as a string "red green blue", where each color component ranges in value from 0 to 255.
Example
To set the color of a text attribute to red, then white, then
blue:
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
myProjectName GetPageHandle myPageName 1
myPageName GetWindowHandle myWinName 1
myWinName GetClientHandle myClientName
myClientName GetLegendHandle myLegendName 1
myLegendName GetHeaderAttributeHandle myAttrName
myAttrName SetColor red
myAttrName SetColor "255 255 255"
myAttrName SetColor 4
Note: The
above example refers to colors by name, by RGB value, and by index.
Errors
Returns 0 if successful, otherwise an error code.