|
|||
|
Home |
Drawing using drawfiles
|
||
|
|
Create an application Create an application which opens a window which has its auto-redraw flag deselected; see Example 2.3.a |
||
|
|
Add an “Initial” event-handler The following procedure sets aside a 100K block of memory (starting at address drawfile) where drawfiles can be stored. It also loads a drawfile, stored in the application's resources directory, into memory
|
||
|
|
Add a “File” utility library A drawfile, whose pathname is file$, can be loaded into memory by calling the utility procedures
|
||
|
|
Add a “WindowRedraw” event-handler The method PROCWindow_DrawfileRedraw method uses the RISCOS Draw module to render drawfiles:
|
||
|
|
Worked solution |
||