qpgraph.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
_Rectangle... Procedures
  Summary Details Example                                   Back
 
  Arguments
 
    control       _GFillInterior or _GBorder
 
    x1, y1        Upper-left corner in viewport coordinates
 
    x2, y2        Lower-right corner in viewport coordinates
 
    wx1, wy1      Upper-left corner in window coordinates
 
    wx2, wy2      Lower-right corner in window coordinates
 
    wxy1, wxy2    Corner coordinates in _WXYCoord record
 
  Description
 
    The _Rectangle functions draw a rectangle using the current line
    style and write mode.
 
    _Rectangle uses the view coordinate system. View coordinates
    (x1,y1) and (x2,y2) are the diagonally opposed corners of the
    rectangle.
 
    _Rectangle_w uses the window coordinate system. Window coordinates
    (wx1,wy1) and (wx2,wy2) are the diagonally opposed corners of the
    rectangle.
 
    _Rectangle_wxy also uses the window coordinate system. Window
    coordinates specified by record variables wxy1 and wxy2 are
    the diagonally opposed corners of the rectangle.
 
    The _GFillInterior option fills the rectangle using the current
    fill mask. If the _GFillInterior option is selected and no fill
    mask is defined, the rectangle is filled using a solid pattern.
    The _GBorder option draws only the outline of the rectangle.
 
    Note:  If you try to fill the rectangle with a separate call to
    the _FloodFill procedure, the rectangle must be drawn using a solid
    line-style pattern using an appropriate write mode.
 
  _GrStatus Returns
 
    _GrClipped, _GrInvalidParameter, _GrNoOutput, _GrNotInProperMode