wn_box_pixel_c
status.i4.v = wn_box_pixel_c(x1.i4.v, y1.i4.v, x2.i4.v, y2.i4.v
[,relative_pos.i4.v])
This routine draws a rectangle at the specified pixel
coordinates. The coordinates can either be absolute
screen coordinates or relative to a graphical window
specified by a previous call to wn_active(_c). The
color of the rectangle is determined by the most recent
call to wn_color(_c). The width of an unfilled rectangle
is determined by the most recent call to wn_border_width_c.
Whether the rectangle is filled or not is determined by the
most recent call to wn_fill_mode(_c).
x1, y1 pixel coordinates of one corner of box
x2, y2 pixel coordinates of diagonal corner of box
[relative_pos] flag indicating whether the coordinates should
be interpreted as full screen coordinates or
if they are relative to the active window
(TRUE -> coordinates are relative to the active window,
FALSE -> coordinates are absolute screen coordinates
(default))
This function returns ACNET status values as follows:
OK success
CBS_NOSETUP an active window has not been established
This function requires the following include files:
cbslib_h, acnet_errors_h
Related functions:
wn_box(_c), wn_color(_c), wn_user_defined_color_c,
wn_read_user_defined_color, wn_fill_mode(_c), wn_border_width_c,
wn_flush, intro_graphics_windows
C/C++ usage:
int status;
int x1 = 3;
int y1 = 3;
int x2 = 8;
int y2 = 8;
int relative_pos = FALSE;
status = wn_box_pixel_c(x1,y1,x2,y2,relative_pos);