home *** CD-ROM | disk | FTP | other *** search
RISC OS BBC BASIC V Source | 1995-10-20 | 3.5 KB | 86 lines |
- > <@@@@@@@@@$Dir>.!@@@@@@@@@
- "Hourglass_Smash":
- $;" at line "+
- "<EvntShell$Path>ShellLibRT"
- shell_FatalError
- "Hourglass_On"
- "Wimp_SlotSize",-1,-1
- progsize%
- pagesize%=1<<10
- freespace%=&8000+progsize%
- =freespace%+pagesize%
- =freespace%
- shell_HeapManagerInit("<EvntShell$Path>",freespace%)
- shell_Init
- -------------------- Load extension libraries -----------------------
- -------------------- Initialise Wimp and Resources ------------------
- /task%=
- shell_WimpInit_I( 200, "@@@@@@@@@" )
- Uncomment the next two lines to enable debug tracing with ShellDBug..
- PROCshell_TraceInit( "" )
- PROCshell_TraceOn
- shell_ResourcesInit
- app_init
- -------------------- Initialise Variables ----------------------------
- "G_closedown% =
- Set this to TRUE when you want the program to
- #! :
- -------------------- Miscelleanous Initialisation --------------------
- "Hourglass_Off"
- shell_Error
- shell_Action(
- shell_Poll_I( 0, task% ) )
- _closedown%
- shell_Exit
- ======================================================================
- app_init
- SetUp_Windows
- SetUp_Menus
- SetUp_IconBar
- ===== Menu_Setup routines ======================================
- SetUp_Menus
- void%
- ?\MenuHandle_IconBar% =
- shell_MenuNew(
- shell_MessageNoArgs( "MTIBar" ), "Menu_IBar", 3 )
- @QMenuItem_Info% =
- shell_MenuAdd( 0,
- shell_MessageNoArgs( "Info" ), "" )
- Aavoid% =
- shell_MenuAdd( 0,
- shell_MessageNoArgs ("Quit" ), "_MenuSelect_Quit" )
- shell_AttachMenuDBox( MenuItem_Info%, "progInfo", "_PreOpenInfo", "" )
- ===== Window_SetUp routines ====================================
- SetUp_Windows
- shell_CreateWindowStatic( "mainw", mainw% )
- ===== IconBar_SetUp routines ===================================
- SetUp_IconBar
- Q^sicon=
- shell_Iconbar( -1, "!" +
- shell_GetAppName, "", 120, MenuHandle_IconBar%, 0, 0, 0 )
- shell_AttachHelpTag( -1, sicon, "iconbar" )
- shell_AttachClickSelect( -1, sicon, "_ClickSelect_IconBar" )
- ===== Dialog_PreOpen routines ==================================
- _PreOpenInfo( window_handle% )
- shell_IconPutData( window_handle%, 0,
- shell_MessageNoArgs( "progInfo0" ), 0 )
- shell_IconPutData( window_handle%, 1,
- shell_MessageNoArgs( "progInfo1" ), 0 )
- shell_IconPutData( window_handle%, 2,
- shell_MessageNoArgs( "progInfo2" ), 0 )
- shell_IconPutData( window_handle%, 3,
- shell_MessageNoArgs( "progInfo3" ), 0 )
- ===== Dialog_PostOpen routines =================================
- ===== Click_Select routines ====================================
- _ClickSelect_IconBar(wh%,icon%)
- shell_OpenWindowStatic(mainw%)
- ===== Click_Adjust routines ====================================
- ===== Menu_Select routines =====================================
- _MenuSelect_Quit(blk%)
- _closedown%=
- ===== Menu_Warning routines ====================================
- ===== Data_Load routines =======================================
- ===== Data_Save routines =======================================
- ===== User application routines ================================
- ================= End Of User Application ======================
-