|
||||||
|
Home |
Drawing in a window
|
|||||
|
|
Creating a non auto-redraw window Create an application with a resfile containing a single window template so that, when the application is double-clicked, the window opens on the desktop and when the window closes the application quits; see Example 1.2.
By default redraws for Toolbox windows are handled automatically but this can be altered by deselecting the Auto-redraw option in the Other properties... dialogue box. When drawing to a window it is a common policy to set the colour of its background to white. This can be done via the edit window's Colours... dialogue box. |
|||||
|
|
Add a “WindowRedraw” event handler
|
|||||
|
|
Drawing a circle The following procedure draws a circle of radius 200 at position (500,500):
|
|||||
|
|
Worked solution | |||||