Xbasic
ROUND_RECT Function
Syntax
V ROUND_RECT(N XPos,N YPos,N Width,N Height,N RoundWidth,N RoundHeight)
Arguments
- XPos
The horizontal coordinate of the upper left corner of the rectangle.
- YPos
The vertical coordinate of the upper left corner of the rectangle.
- Width
The width of the rectangle.
- Height
The height of the rectangle.
- RoundWidth
The horizontal stretch of the corner's curve.
- RoundHeight
The vertical stretch of the corner's curve.
Description
Draw the border of a rounded rectangle.
Discussion
The ROUND_RECT() function draws a round cornered rectangle on the bitmap. There is no fill. The border color is the current pen color.
put description here
ui_bitmap_create("test",4,2) ui_bitmap_draw("test",<<%code% inner_Rect(0,0,4,2) set_brush("green") set_pen("black") 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