home *** CD-ROM | disk | FTP | other *** search
Wrap
/**/ 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 listview.frame="inputlist" listview.list="l" res=NewObj("listview","listview") if res~=0 then call err(res) po.object="pg" pg.class="group" pg.0="listview" pg.1=button("closepo","Close") po.string=string("S") po.button=makeobj("","Imagebutton","popup") po.toggle=1 po.openfun="call domethod('l','clear');call set('l','quiet',1);pl=show('p',,'/');do while pl~='';parse var pl p '/' pl;call domethod('l','insert',p,'sorted');end;call set('l','quiet',0);return 1" po.closefun="call DoMethod('l','GetEntry','active','A');call set('s','contents',a)" res = NewObj("popobject","po") if res~=0 then call err(res) app.Title="PopObject" app.Version="$VER: PopObject 1.0 (22.11.99)" app.Copyright="©1999, alfie" app.Author="alfie" app.Description="PopObject show" app.Base="POPO" app.SubWindow="win" win.Title="PopObject" win.ID="MAIN" win.Contents="mgroup" mgroup.0="po" res=NewObj("application","app") if res~=0 then call err(res) call notify("win","CloseRequest",1,"app","ReturnID","quit") call notify("listview","DoubleClick","EveryTime","po","close",1) call notify("closepo","pressed",0,"po","close") call set("win","open",1) call getattr("win","open","o") if o=0 then do say "can't open window" exit end return /***********************************************************************/ halt: break_c: exit /**************************************************************************/ popofun: procedure call DoMethod('l','GetEntry','active','A') call set('s','contents',a) return /**************************************************************************/