home *** CD-ROM | disk | FTP | other *** search
- /* */
-
- call rxmuiopt("DEBUGMODE SHOWERR")
-
- listview.list="voll"
- voll.class="volumelist"
- voll.frame="READLIST"
- voll.directory=programname("PATH")
- listview.weight=1000
- res=NewObj("LISTVIEW","LISTVIEW")
- if res~=0 then call err(res)
-
- app.Title="kod"
- app.Version="$VER: kod 1.0 (22.11.99)"
- app.Copyright="©1999, koksa"
- app.Author="kkoksa phd"
- app.Description="kodda da worlda"
- app.Base="LOV"
- app.SubWindow="WIN"
- win.Title="Title"
- win.Contents="MGROUP"
- mgroup.0="LISTVIEW"
- mgroup.1=String("DIR",,Programname("PATH"))
- mgroup.4=hvspace()
-
- res=NewObj("APPLICATION","APP")
- if res~=0 then call err(res)
-
- res=Notify("WIN","CLOSEREQUEST",1,"APP","RETURNID","QUIT")
- if res~=0 then call err(res)
-
- res=Notify("LISTVIEW","DOUBLECLICK","EVERYTIME","APP","RETURNID")
- if res~=0 then call err(res)
-
- res=set("WIN","OPEN",1)
- if res~=0 then call err(res)
-
- do while 1
- call handle("APP","H")
- do i=0 to h.num-1
- if h.i="QUIT" then exit
- if h.i="LISTVIEW" then do
- res=DoMethod("voll","GETENTRY","ACTIVE","A")
- if res~=0 then call err(res)
- say a.name
- end
- end
- s=Wait(or(h.signals,2**12))
- if and(s,2**12)~=0 then exit
- end
- exit
-
- err: procedure expose sigl
- parse arg res
- say getrxmuistring(res) "in line" sigl-1
- exit
-
- makeToggle: procedure
- parse arg name,text,state,cc
- return ToggleButton(name,text,state)
- b.Contents=text
- b.inputmode="TOGGLE"
- b.showselstate=1
- b.selected=state
- b.font="BUTTON"
- b.frame="BUTTON"
- b.background="BUTTONBACK"
- b.TextHiChar=cc
- b.ControlChar=cc
- b.TextHiCharIdx='_'
- res=newobj("TEXT",name,"B")
- if res then call esci(res)
- return name
-