GRAPHIC ATTACH statement

Purpose

Select the graphic target (window or bitmap ) on which future drawing operations will take place.

Syntax

GRAPHIC ATTACH hWin???, id& [, REDRAW]

Remarks

The selection remains in effect until another GRAPHIC ATTACH statement is executed, or the graphic target is deleted.  All PowerBASIC graphical displays are persistent; they will be automatically redrawn even if minimized or temporarily covered by another window.

hWin???

graphic window or bitmap to be used with GRAPHIC statements.

id&

Reserved for future implementation.  Must be 0 for a graphic window or bitmap.

REDRAW

Optional parameter that causes all drawing statements to be buffered until a GRAPHIC REDRAW statement is executed, or the operating system chooses to update the target window.  Without REDRAW, all graphical statements (Line, Box, etc.) are performed immediately.  However, in certain intensive drawing operations, it may be preferable to delay the display until a number of statements have been performed.  In some cases, this can improve the overall performance dramatically.

See also

GRAPHIC BITMAP LOAD, GRAPHIC BITMAP NEW, GRAPHIC WINDOW