GRAPHIC GET CLIENT statement  

Purpose

Retrieve the client size of the selected graphic target.

Syntax

GRAPHIC GET CLIENT To WidthVar!, HeightVar!

Function form:

WidthVar! = GRAPHIC(Client.X)

HeightVar! = GRAPHIC(Client.Y)

Remarks

GRAPHIC GET CLIENT retrieves the physical size of the client area (visible part) of the attached graphic window.  The size is specified in Pixels.  The sizes returned are not altered or affected by GRAPHIC SCALE, VIRTUAL, or AUTOSIZE operations, as it returns the physical size of the viewable area in the terms used to create it.  The client area does not include a caption, frame, scrollbars, etc.  When GRAPHIC GET CLIENT is used with a Bitmap, it returns 0,0.  You would normally use GRAPHIC GET CANVAS with a Bitmap, or to obtain the size of the area which can be drawn.  If no graphic target has been attached with GRAPHIC ATTACH, the values 0,0 are returned.

See also

GRAPHIC ATTACH, GRAPHIC GET CANVAS, GRAPHIC GET CLIP, GRAPHIC GET SIZE, GRAPHIC SET CLIENT