DRAWRECT
|
Syntax: |
DRAWRECT(<Row>, <Column>,
<Height in Rows>, <Width in Columns>, <Width>, <Red>,
<Green>, <Blue> [,<Handle>
[,<Fillcolor Red>, <Fillcolor
Green>, <Fillcolor Blue>]])
|
||||||||||||||||||||||||
|
|
|
||||||||||||||||||||||||
|
Meaning: |
Draws a rectangle on screen in the color
<Red>,<Green>,<Blue>. If <Fillcolor Red> >= 0 and
<Fillcolor Green> >= 0 and <Fillcolor Blue> >= 0, the
background of the rectangle is filled with that color. If <Red> < 0 or <Green> < 0
or <Blue> < 0, a rectangle previously drawn at the same position and
of the same length and width is deleted again. <Handle> specifies the window in which
the rectangle is to be drawn. <Handle> can contain the window depth or
the handle of a split window or a WINDOWCALL
window. If the parameter <Handle> is missing, the rectangle is drawn on
the current mask. DRAWRECT returns the value –1, if a
non-existent rectangle is to be deleted, otherwise it always returns 1. Attention: In
Html programs 1 is returned when NOREPAINT is
active. |
||||||||||||||||||||||||
|
Parameter: |
|
||||||||||||||||||||||||
|
Sample: |
/* Draw a red rectangle
on position (5.5,10.25) with size (10,20) and /* width = 3 pixel H% = DRAWRECT(5.5,10.25,10,20,3,255,0,0) ... /* Delete the rectangle H% = DRAWRECT
(5.5,10.25,10,20,3,-1,-1,-1) |
||||||||||||||||||||||||
|
See also: |
|