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("rexxsupport.library","rxwiz.library")~=0 then exit
-
- prg=ProgramName("NOEXT")
- progdir=PathPart(ProgramName("FULL"))
-
- /**arguments**/
- parm.0.value=""
- if ~RMH_ReadArgs("PUBSCREEN/K,NOGUI/S") then do
- call PrintFault(IoErr(),prg)
- exit
- end
-
- s.PubScreen=parm.0.value
- s.fallback=1
- s.Snapshot=1
- s.Iconified=parm.1.flag
- s.AppName="hie"
- s.AppIcon="disk"
- s.AppIconName="Ciao"
- s.CxTitle="Title"
- s.CxDescr="Descr"
- s.CxHotKey="ctrl a"
- s.CxFlags="NOTIFY"
- s.MasterWin="WIN"
- s.AutoIconify=1
- s.AutoClose=1
- res=OpenSurface(AddPart(progdir,"hie.wizard"),"S")
- if res~=0 then call error(res)
-
- win.Gads=12
- win.NoWindow=1
- res=OpenWindow("S","WIN")
- if res~=0 then call error(res)
-
- list.COLUMNS=2
- list.divide=1
- list.0.COLUMNS=2
- list.0.divide=1
- list.1.COLUMNS=2
- list.1.divide=1
- list.Header="Name|Phone"
-
- list.0="Friends";list.0.list=1;list.0.spen=2;list.0.sel=1
- list.0.0="Jhon|555214"
- list.0.1="Mary|5535478"
- list.1="Work";list.1.list=1
- list.1.0="Acme|12345"
- set.list="LIST"
- res=SetWizAttrs("S","WIN","LISTER","SET")
- if res~=0 then call error(res)
-
- drop win.
- win.AppWindow=1
- res=OpenWindow("S","WIN")
- if res~=0 then call error(res)
- ss=SurfaceSignal("S")
-
- stop=0
- ctrl_c=2**12
- do while ~stop
- mask=Wait(or(ss,ctrl_c))
- if and(mask,ctrl_c)~=0 then call break_c
- if and(mask,ss)~=0 then stop=handle("S")
- end
- call CloseWindow("S","WIN")
- call CloseSurface("S")
- exit
-
- /**************************************************************************/
- error:
- parse arg code
- if RXWIZERR~="RXWIZERR" then string = GetRxWizString(1001)":" RXWIZERR || d2c(10)
- else string=""
- string= string || GetRxWizString(code) || d2c(10) || GetRxWizString(1002)":" SIGL-1
- call easyrequest(string,"RXWiz")
- exit
- /**************************************************************************/
- handle: procedure expose globals. strings.
- parse arg s
- handle.wait=0
- res=HandleSurface("S","HANDLE")
- do i=0 to handle.imsg-1
- select
- when handle.i.class=="IDCMPUPDATE" then do
- say "Selected:"handle.i.selected
- if handle.i.doubleclick=1 then say "doubleclick"
- if handle.i.TreeClick=1 then say "TreeClick"
- end
- when handle.i.class=="MENUPICK" then select
- when handle.i.objectID="MQUIT" then return 1
- when handle.i.objectID="MHIDE" then call IconifySurface("S",1)
- otherwise nop
- end
- when handle.i.class=="APPWINDOW" then
- say "APPWINDOW" "Window:"handle.i.window handle.i.objectID handle.i.ailock
- when handle.i.class=="APPICON" then
- say "APPICON" "Window:"handle.i.window handle.i.objectID handle.i.ailock
- otherwise say handle.i.class
- end
- end
- return 0
- /**************************************************************************/
- halt:
- break_c:
- exit
- /**************************************************************************/
-