pltIDrawControl DrawFilledRectangle

Draws a filled rectangle.

Syntax

pltIDrawControl_handle DrawFilledRectangle ulx, uly, lrx, lry, color

Application

HyperWorks Tcl Modify

Description

Returns 0 = HW_Success or 3 = HW_InvalidHandle.

Inputs

ulx
X-coordinate of the rectangle’s upper left point.
uly
Y-coordinate of the rectangle’s upper left point.
lrx
X-coordinate of the rectangle’s lower right point.
lry
Y-coordinate of the rectangle’s lower right point.
color
The index of the color to be used (must be non-negative).

Example

To draw a filled rectangle from (1, 4) to (5, 0) 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 DrawFilledRectangle 1 4 5 1 2

Errors

None.