GRAPHIC SET CLIENT statement  

Purpose

Change the size of a graphic window to a specific client area size.

Syntax

GRAPHIC SET CLIENT nWide&, nHigh&

nWide&, nHigh&

Integral numeric expressions which specify the desired size of the client area.  Width and height are specified in pixels.

Remarks

Client size is smaller than the overall size.  The client area is the part inside the borders of a graphic window.  Overall size includes the borders.

The original bitmap is copied, pixel for pixel, to the newly resized graphic window.  Any expanded area is filled with the current background color.  Your program draws to it in the normal fashion for a bitmap of the new size.

If a clip area had been established to create margins, it is reset.  If scaled coordinates had been established, they are also reset, as neither would be appropriate for the altered size.  You can enable these attributes again with GRAPHIC SCALE or GRAPHIC SET CLIP, based upon the new size of the drawing area.

See also

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