WindowOutput()

Syntax

OutputID = WindowOutput(#Window)
Description
Returns the OutputID of the given window to perform 2D rendering operation on it. It will use the PureBasic 2DDrawing library (see StartDrawing()).

Note: Content drawn on a window will be erased whenever the window or a part of it is covered by another window, moved outside of the screen or when the window is hidden or minimized. So to keep the drawn content visible, it must be redrawn after every #PB_Event_Repaint event. A more convenient alternative is to draw the content to an image via ImageOutput() and display it as ImageGadget() in the application window and if necessary, update it with SetGadgetState(). This way all needed refreshing will be handled by the ImageGadget.

Supported OS

All

<- WindowMouseY() - Window Index - WindowWidth() ->