home *** CD-ROM | disk | FTP | other *** search
- /**/
-
- 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 RxMUIOpt("DebugMode ShowErr")
-
- call createApp
- call handleApp
-
- /* never reached */
- /***********************************************************************/
- handleApp: procedure
- ctrl_c=2**12
- do forever
- call NewHandle("APP","H",ctrl_c)
- if and(h.signals,ctrl_c)>0 then exit
- if h.event="QUIT" then exit
- else interpret h.event
- end
- /* never reached */
- /***********************************************************************/
- createApp: procedure
-
- win.ID="MAIN"
- win.Title="CompactWindow Example"
- win.NOGADGETS=1
- win.SIZEGADGET=0
- win.Contents="MGROUP"
- mgroup.0="cy"
- cy.class="cycle"
- cy.entries="uno|due|tre"
- res=NewObj("compactwindow","win")
- if res~=0 then exit
-
- app.Title="CompactWindow"
- app.Version="$VER: CompactWindow 1.0 (10.12.99)"
- app.Copyright="©1999, alfie"
- app.Author="alfie"
- app.Description="CompactWindow example"
- app.Base="RXMUIEXAMPLE"
- app.SubWindow="WIN"
- res=NewObj("APPLICATION","APP")
- if res~=0 then exit
-
- call Notify("WIN","CLOSEREQUEST",1,"APP","RETURNID","QUIT")
-
- call set("win","open",1)
- if ~xget("win","open") then do
- say "can't open window"
- exit
- end
-
- return
- /***********************************************************************/
- halt:
- break_c:
- exit
- /**************************************************************************/
-