Jump to content

Futurebasic/Language/Reference/window picture

From Wikibooks, open books for an open world

WINDOW PICTURE

[edit | edit source]

Syntax

[edit | edit source]
WINDOW PICTURE [#]windowID,pictHandle&

Description

[edit | edit source]

This statement "attaches" the picture whose handle is pictHandle& to the window specified by windowID. The picture is refreshed automatically as necessary, and all _wndRefreshDIALOG events for the window are inhibited. This is sometimes useful when you want to display a window which shows nothing but a single unchanging picture. However, because _wndRefresh events are inhibited, it makes it difficult to maintain other kinds of contents in the window. It's generally more useful to use the PICTURE FIELD statement instead.

You must not dispose or release the picture in pictHandle& until you first either close the window (using WINDOW CLOSE), or detach the picture from the window. You can detach the picture either by explicitly attaching a different picture, or by executing the following:

WINDOW PICTURE [#]windowID, _nil

See Also

[edit | edit source]

PICTURE statement; PICTURE function; PICTURE ON/OFF; PICTURE FIELD; DIALOG function