Search the web
Sign In
New User? Sign Up
rxmui · Discussion about RxMUI, the MUI/Guis library for ARexx.
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Aborting script outside Handle_ap   Message List  
Reply | Forward Message #1814 of 1832 |
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







Thu Dec 25, 2008 4:39 pm

ftruz44gwe
Offline Offline
Send Email Send Email

Forward
Message #1814 of 1832 |
Expand Messages Author Sort by Date

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...
Andreas
ftruz44gwe
Offline Send Email
Dec 25, 2008
4:39 pm

Hoi Andreas, ... Yes, code after your "not work" follows: [...] /* this will work */ call Notify("progress","CloseRequest",1,"app","ReturnID","QUIT") call...
Bernd Gollesch
bgollesch
Offline Send Email
Dec 26, 2008
12:18 am

Hoi Andreas, ... Using only "Return" and not "ReturnID" my be better: [...] /* this will work */    call...
Bernd Gollesch
bgollesch
Offline Send Email
Dec 26, 2008
12:32 am

Hi Bernd, Thank You, that was easier than I thought....
Andreas
ftruz44gwe
Offline Send Email
Dec 26, 2008
11:12 am

Hi to all, I uploaded the two scripts I asked about to Aminet: http://aminet.net/package/util/conv/ConvertCDID http://aminet.net/package/util/rexx/ARexxShell...
Andreas
ftruz44gwe
Offline Send Email
Dec 29, 2008
1:51 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help