Xbasic
INNER_SHAPE Function
Syntax
V INNER_SHAPE(C shape_name,N XPos,N YPos)
Arguments
- shape_name
The name of the shape to draw on the bitmap.
- XPos
The horizontal coordinate of the upper left corner of the shape. Larger values move right.
- YPos
The vertical coordinate of the upper left corner of the shape. Larger values move down.
Description
Draw inside of a filled shape.
Discussion
The INNER_SHAPE() function draws the named shape onto the bitmap. The fill color is set by the current brush. There is no border. Compare to the FILL_SHAPE()and SHAPE()functions.
Example
ui_bitmap_create("test",4,2)
ui_bitmap_draw("test",<<%code%
inner_Rect(0,0,4,2)
set_brush("green")
set_pen("black")
inner_round_rect(1, .5, 2, 1, .5, .25)
%code%)
ui_dlg_box("","{image=test}")Limitations
Used only in the Code sections of UI_BITMAP_DRAW(), UI_SCREEN_DRAW(), and UI_PRINTER_DRAW().
See Also
