GRAPHIC GET CANVAS statement  

Purpose

Retrieves the writable size of the attached graphic target.

Syntax

GRAPHIC GET CANVAS TO WidthVar!, HeightVar!

Function Form:

WidthVar!  = GRAPHIC(CANVAS.X)

HeightVar! = GRAPHIC(CANVAS.Y)

Remarks

GRAPHIC GET CANVAS retrieves the size of the drawing buffer for the attached graphic window, control, or bitmap.  The size is specified in Page Units, so it could return scaled values if they were applied with GRAPHIC SCALE.  If the graphic window or control is FIXED (the default), the size returned is equivalent to the CLIENT size (other than the scaling factor).  The CANVAS size does not include a caption, frame, scrollbars, etc.  If no graphic target has been attached with GRAPHIC ATTACH, the values 0,0 are returned.

See also

GRAPHIC GET CLIENT, GRAPHIC GET CLIP, GRAPHIC GET SIZE, GRAPHIC GET SCALE, GRAPHIC SCALE