home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Enigma Amiga Life 109
/
EnigmaAmiga109CD.iso
/
software
/
sviluppo
/
rxmui
/
examples
/
vl.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-12-21
|
2KB
|
78 lines
/* */
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")
listview.list="voll"
voll.class="volumelist"
voll.directory=programname("PATH")
listview.weight=1000
listview.frame="READLIST"
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)
s=0
do forever
call handle("APP","H",s)
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 a.entrytype pragma("D")
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