home *** CD-ROM | disk | FTP | other *** search
- /* Wheel.mcc example */
-
- call rxmuiopt("debugmode showerr")
-
- signal on halt
- signal on break_c
-
- l="rmh.library";if ~show("L",l) then;if ~addlib(l,0,-30) then exit
- if AddLibrary("rxmui.library")~=0 then exit
-
- call createApp
- call handleApp
-
- /***********************************************************************/
- handleApp: procedure
- ctrl_c=2**12
- do forever
- call newhandle("APP","H",ctrl_c)
- if and(h.signals,ctrl_c)>0 then exit
- select
- when h.event="QUIT" then exit
- otherwise interpret h.event
- end
- end
- exit
- /***********************************************************************/
- err: procedure expose sigl rxmuierror
- parse arg res
- say sigl "["res"]"
- say getrxmuistring(res) "in line" sigl-1 rxmuierror
- exit
- /***********************************************************************/
- createApp: procedure
- app.Title="Wheel"
- app.Version="$VER: Wheel 1.0 (10.12.99)"
- app.Copyright="©1999, alfie"
- app.Author="alfie"
- app.Description="Wheel example"
- app.Base="RXMUIEXAMPLE"
- app.SubWindow="WIN"
- win.ID="MAIN"
- win.Title="Wheel Example"
- win.Contents="MGROUP"
-
- mgroup.0="wh"
- wh.class="wheel"
- wh.frame="button"
- wh.min=0
- wh.max=1000
-
- twh.integer=0
- mgroup.1=Text("twh")
-
- mgroup.2="wv"
- wv.class="wheel"
- wv.frame="button"
- wv.Weight=60
- wv.wheelhoriz=1
- wv.min=0
- wv.max=1000
- wv.value=1000
-
- twv.integer=1000
- mgroup.3=Text("twv")
-
- call NewObj("APPLICATION","APP")
-
- call Notify("WIN","CLOSEREQUEST",1,"APP","RETURNID","QUIT")
- call Notify("wh","value","everytime","twh","set","integer","triggervalue")
- call Notify("wv","value","everytime","twv","set","integer","triggervalue")
-
- call set("win","open",1)
-
- return
- /***********************************************************************/
- halt:
- break_c:
- exit
- /**************************************************************************/
-