/* ** Original C Code written by Stefan Stuntz ** ** Translation into E by Klaus Becker ** ** All comments are from the C-Source */ OPT PREPROCESS MODULE 'muimaster','libraries/mui','libraries/muip', 'mui/muicustomclass','amigalib/boopsi', 'intuition/classes','intuition/classusr', 'intuition/screens','intuition/intuition', 'utility/tagitem','utility/hooks','tools/installhook', 'wb','workbench/startup','workbench/workbench' /* ** App message callback hook. Note that the object given here ** is the object that called the hook, i.e. the one that got ** the icon(s) dropped on it. */ PROC appMsgFunc(obj,x:PTR TO LONG) DEF ap:PTR TO wbarg, amsg:PTR TO appmessage, i, buf[256]:STRING,b amsg:=x[] b:=buf;i:=0 ap:=amsg.arglist WHILE (i MUIV_Application_ReturnID_Quit IF sigs THEN sigs:=Wait(sigs) ENDWHILE set(window,MUIA_Window_Open,FALSE) /* ** Shut down... */ EXCEPT DO IF app THEN Mui_DisposeObject(app) IF muimasterbase THEN CloseLibrary(muimasterbase) IF exception THEN WriteF('\s\n',exception) ENDPROC