pltIDrawControl DrawRectangle
Draws a rectangle.
Syntax
pltIDrawControl_handle DrawRectangleulx, uly, lrx, lry, style, width, 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.
- style
- The index of the style to be used (must be non-negative).
- width
- The width to be used (must be non-negative).
- color
- The index of the color to be used (must be non-negative).
Example
hwi GetSessionHandle mySessionName
mySessionName GetProjectHandle myProjectName
myProjectName GetPageHandle myPageName
myPageName GetWindowHandle myWindowName
myWindowName GetClientHandle myPlotName
myPlotName GetDrawControlHandle myDrawer
myDrawer DrawRectangle 1 4 5 1 1 3 2
Errors
None.