home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 18
/
aminetcdnumber181997.iso
/
Aminet
/
dev
/
e
/
EasyGUI_v33b2.lha
/
Src
/
EasyGUI
/
tapedeck_test.e
< prev
next >
Wrap
Text File
|
1997-02-10
|
714b
|
33 lines
MODULE 'tools/easygui', 'tools/exceptions',
'plugins/tapedeck'
PROC main() HANDLE
DEF t=NIL:PTR TO tapedeck
NEW t.tapedeck()
easyguiA('BOOPSI in EasyGUI!',
[ROWS,
[TEXT,'Tapedeck test...',NIL,TRUE,1],
[PLUGIN,{tapedeckaction},t],
[EQCOLS,
[BUTTON,{reset},'Reset',t],
[BUTTON,{toggle_enabled},'Toggle Enabled',t]
]
])
EXCEPT DO
END t
report_exception()
ENDPROC
PROC tapedeckaction(i,t:PTR TO tapedeck)
PrintF('Action: mode=\d\s\n', t.mode, IF t.paused THEN ' (paused)' ELSE '')
ENDPROC
PROC reset(t:PTR TO tapedeck,i)
t.setmode()
t.setpaused(FALSE)
ENDPROC
PROC toggle_enabled(t:PTR TO tapedeck,i)
t.setdisabled(t.disabled=FALSE)
ENDPROC