home *** CD-ROM | disk | FTP | other *** search
RISC OS BBC BASIC V Source | 1993-11-15 | 3.7 KB | 106 lines |
- > <EvntShell$Dir>.!EvntShell
- debugging%=
- Copyright Paul Hobbs 1990,1991,1992
- Rheinpfalzstrasse 2
- 85049 Ingolstadt
- Germany
- This program and parts thereof may be freely distributed
- shell_Error
- "<EvntShellSystem$Path>ShellLibRT"
- "Hourglass_On"
- "Wimp_SlotSize",-1,-1
- progsize%
- pagesize%=1<<10
- freespace%=&8000+progsize%
- =freespace%+pagesize%
- =freespace%
- shell_HeapManagerInit("<EvntShellSystem$Path>",freespace%)
- shell_Init
- 1task%=
- shell_WimpInit_I(200,"EvntShell Demo")
- shell_TraceInit("")
- shell_TraceOn
- shell_ResourcesInit
- app_init
- -------------------- Initialise Variables ----------------------------
- !G_closedown% =
- Set this to TRUE when you want the program to
- "! :
- #Dchanged% =
- Used to keep track of whether the data has
- $K :
- been changed. Call PROCfile_changed() when it
- %G :
- has. But if the program does not use data
- &H :
- files just ignore this variable but do not
- 'G :
- delete it as the program checks it before
- (& :
- exiting!
- -------------------- Miscelleanous Initialisation --------------------
- "Hourglass_Off"
- shell_Error
- shell_Action(
- shell_Poll_I(0,task%))
- _closedown%
- shell_Exit:
- ======================================================================
- app_init
- SetUp_Menus
- 9Ysicon=
- shell_Iconbar(-1,"!"+
- shell_GetAppName,"NoData",120,MenuHandle_IconBar%,0,0,0)
- shell_AttachClickSelect(-1,sicon,"_ClickSelect_IconBar")
- shell_AttachHelpTag(-1,sicon,"iconbar")
- shell_CreateWindowStatic("mainw",mainw%)
- shell_AttachMenu(mainw%,-1,MenuHandle_Main%,0,0,0)
- shell_CreateWindowStatic("search",search%)
- shell_AttachMenu(search%,4,MenuHandle_Demo%,0,0,0)
- ===== Menu_Setup routines ======================================
- SetUp_Menus
- void%
- H3MenuHandle_IconBar%=
- shell_MenuNew("EvntShell")
- I3MenuItem_Info% =
- shell_MenuAdd(0,"Info","")
- J<void% =
- shell_MenuAdd(0,"Preferences..","")
- KCvoid% =
- shell_MenuAdd(0,"Quit","_MenuSelect_Quit")
- shell_AttachMenuDBox(MenuItem_Info%,"progInfo","_PreOpenInfo","")
- N3MenuHandle_Main% =
- shell_MenuNew("Main Menu")
- O3void% =
- shell_MenuAdd(0,"Paul","")
- P4void% =
- shell_MenuAdd(0,"Hilke","")
- QCvoid% =
- shell_MenuAdd(0,"Quit","_MenuSelect_Quit")
- S3MenuHandle_Demo% =
- shell_MenuNew("Demo Menu")
- TKvoid% =
- shell_MenuAdd(0,"As you can see, menus can be","")
- ULvoid% =
- shell_MenuAdd(0,"any width and can be attached","")
- VLvoid% =
- shell_MenuAdd(0,"to specific icons if required","")
- ===== Dialog_PreOpen routines ==================================
- _PreOpenInfo(wh%)
- shell_IconPutData(wh%,0,
- shell_MessageNoArgs("progInfo0"),0)
- shell_IconPutData(wh%,1,
- shell_MessageNoArgs("progInfo1"),0)
- shell_IconPutData(wh%,2,
- shell_MessageNoArgs("progInfo2"),0)
- shell_IconPutData(wh%,3,
- shell_MessageNoArgs("progInfo3"),0)
- ===== Click_Select routines ====================================
- _ClickSelect_IconBar(wh%,icon%)
- shell_OpenWindowStatic(mainw%)
- shell_OpenWindowStatic(search%)
- ===== Menu_Select routines =====================================
- _MenuSelect_Quit(blk%)
- _closedown%=
- ===== End of user application ==================================
-