pltIDrawControl DrawColoredText

Draws colored text.

Syntax

pltIDrawControl_handle DrawColoredTextulx, uly, text, color

Application

HyperWorks Tcl Modify

Description

Returns 0 = HW_Success or 3 = HW_InvalidHandle

Inputs

ulx
X-coordinate of the text’s upper left point.
uly
Y-coordinate of the text’s upper left point
text
The text to be drawn.
color
The index of the color to be used (must be non-negative).

Example

To draw colored text in a text box with an upper left coordinate of (2, 5) and with a color index of 2:
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
myProjectName GetPageHandle myPageName
myPageName GetWindowHandle myWindowName
myWindowName GetClientHandle myPlotName
myPlotName GetDrawControlHandle myDrawer
myDrawer DrawColoredText 2 5 "My text" 2

Errors

None.