home *** CD-ROM | disk | FTP | other *** search
- /**/
-
- signal on halt
- signal on break_c
-
- l="rmh.library";if ~show("L",l) then;if ~addlib(l,0,-30) then exit
- if AddLibrary("rxmui.library")~=0 then exit
-
- call RxMUIOpt("debugmode showerr")
- call CreateApp
- call HandleApp
- /* never reached */
- /***********************************************************************/
- HandleApp: procedure
-
- ctrl_c=2**12
- do forever
- call NewHandle("app","h",ctrl_c)
- if and(h.signals,ctrl_c)>0 then exit
- select
- when h.event="QUIT" then exit
- otherwise interpret h.event
- end
- end
- /* never reached */
- /***********************************************************************/
- err: procedure expose sigl rxmuierror
- parse arg res
- say sigl "["res"]"
- say getrxmuistring(res) "in line" sigl-1 rxmuierror
- exit
- /***********************************************************************/
- CreateApp: procedure
-
- app.Title="PopaslExample"
- app.Version="$VER: PopaslExample 1.0 (12.10.2000)"
- app.Copyright="©2000, alfie"
- app.Author="alfie"
- app.Description="PopaslExample"
- app.Base="RXMUIEXAMPLE"
- app.SubWindow="win"
- win.ID="MAIN"
- win.Title="PopaslExample"
- win.Contents="MGROUP"
-
- mgroup.0="popu"
- popu.class="popasl"
- popu.FilterMacro="parse arg a,b,c;call set(info,contents,ciao);return pos('.c',a)>0"
- popu.DomultiSelect=1
- popu.AcceptPattern="#?"
- popu.RejectPattern="#?.o"
- url.Maxlen=16000
- popu.String=string("url")
- popu.DoPattern=1
- popu.SleepWindow=1
- popu.InitialPattern="#?"
- mgroup.1=Text("info")
-
- res=NewObj("APPLICATION","APP")
- if res~=0 then call err(res)
-
- call set("win","open",1)
- call getattr("win","open","o")
- if o=0 then do
- say "can't open window"
- exit
- end
-
- call Notify("win","CloseRequest",1,"app","ReturnID","quit")
- call notify("url","newcontents","everytime",info,set,contents,triggervalue)
-
- return
- /***********************************************************************/
- halt:
- break_c:
- exit
- /**************************************************************************/
-