:SetupProc
DEFPROCStartupProcedure
REM Called when program starts running
ENDPROC

:LoadProc
DEFPROCLoadProcedure(Filename$, FileType%)
REM Filename$ contains file that you are supposed to load
REM FileType% contains its filetype
ENDPROC

:QuitFunction
DEFFNQuitFunction%
REM Called when task manager is about to terminate
REM program. Return TRUE if it's alright to quit
REM or FALSE if program can't quit.
REM You should use this time to save data
=TRUE

:SelectProc
DEFPROCSelectProcedure
ENDPROC

:AdjustProc
DEFPROCAdjustProcedure
ENDPROC

:MenuSelectProc
DEFPROCMenuSelection
ENDPROC

:RawHandler
DEFFNRawHandler%(EventNumber%,DataBlock%)
REM Return TRUE if you don't want other routines to get this
REM event. Return FALSE if other routines should also receive it.
=False

:NullHandler
DEFPROCNullHandler
REM No parameters
ENDPROC

:RedrawHandler
DEFPROCRedrawWindow(x0%,y0%,x1%,y1%)
REM x0%-y1% coordinates given are the current graphics
REM rectangle setup by wimp
ENDPROC

:OpenHandler
DEFPROCOpenWindow(scx%,scy%,x0%,y0%,x1%,y1%)
REM scx% and scy% are positions of the scroll bars
REM x0%-y1% are the window coordinates
ENDPROC

:CloseHandler
DEFPROCCloseWindow
REM No parameters
ENDPROC

:LeaveHandler
DEFPROCPointerLeaving
REM No parameters
ENDPROC

:EnterHandler
DEFPROCPointerEntering
REM No parameters
ENDPROC

:EndDragHandler
DEFPROCDragEnd(x0%,y0%,x1%,y1%)
REM x0-y1% are coordinates of drag box when user releases mouse buttons
ENDPROC

:KeyboardHandler
DEFFNKeyboardEvent%(Key%)
REM parameter is the key code (NOTE: It's 32 bits)
REM Return TRUE if you don't want other routines to get this
REM event. Return FALSE if other routines should also receive it.
=False

:ClickHandler
DEFPROCMouseClick
REM No parameters
ENDPROC

:MenuSelectHandler
DEFFNMenuSelection%(MenuSelection%)
REM MenuSelection% points to a list of menu selection numbers as
REM returned by wimp. You read them using ReadInt(MenuSelection%+Submenu%*4)
REM Where entry is the submenu you want. See programmers reference manual
REM for more information.
REM Return TRUE to stop WB from trying to send this event to a procedure
REM connected to the menu entry.
=TRUE

:MenuMakerHandler
DEFPROCMenuMaker
REM No parameters
ENDPROC

:
