Futurebasic/Language/Reference/window picture

WINDOW PICTUREEdit

SyntaxEdit

WINDOW PICTURE [#]windowID,pictHandle&

DescriptionEdit

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.

NoteEdit

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 AlsoEdit

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