Hallo everyone,
I hope this group is still active. I just started writing scripts with
RxMui and I run into some problems. I hope you can help me:
1. I've done a script (the one bekow), that after hiting start does
some long calculations (could last 5 mins). During that a progress bar
opens. The problem is that I want to be able to abort this calculation
with a cancel button in the progress bar window . This will obviously
not work, because the gui will only accept an input during the
handle_app procedure.
Is this even possible?
2. In another scrip I use a listview window. Is it possible to add
some entries which can not be selected?
3.This is not really Mui related, but can the requesters of the
RMH.library pop up under the mouse?
Merry Christmas and thanks in advance
If you want to email me, don't use this one: andreaas-kra@...
Can't change the old one.
/* Convert CDID */
call init
call CreateApp
call HandleApp
init: procedure
return
HandleApp: procedure.
return
CreateApp: procedure
*/ before this point, alot of menus and buttons */
app.SubWindow="win"
/* the progress bar with the cancel-button */
app.SubWindow.1="progress"
progress.ID="sprogress"
progress.Title="Converting ..."
progress.Contents="sgroup"
sgroup.0="pe"
pe.class="group"
pe.0 = "tgroup"
tgroup.class = "hgroup"
gauge_glob_progress.weight = 20
gauge_glob_progress.showme = 0
tgroup.0 = MakeObj("gauge_glob_progress","Gauge",,100,0,"")
/* the cancel button that should leave the lets-go function */
sgroup.1="be"
be.class="group"
be.horiz=1
be.0=hspace()
be.1=button("cancel","Cancel")
be.2=hspace()
res=NewObj("APPLICATION","APP")
if res~=0 then call err(res)
call set("win","open",1)
call Notify("win","CloseRequest",1,"app","ReturnID","quit")
call notify("start","pressed",0,"app","return","call lets_go()")
/* this obviously do not work*/
/* call notify("cancel","pressed",0,"app","return","????") */
return
/* this is the function i want to leave, pressing the button */
lets_go: procedure
call set("progress","open",1)
call set('win','Sleep',0)
DO cds=1 to 10000
/* counter for progress bar */
percent=trunc(cds*100/10000)
call set("gauge_glob_progress","Current",percent)
call set("gauge_glob_progress","InfoText",disk_nr" CDs found:
"percent||"%")
call set("gauge_glob_progress","ShowMe",1)
END
call set("progress","open",0)
call set('win','Sleep',0)
return