You might wonder why you want to make a lister invisible, here's a couple
of possible reasons:
a) You want to clear the Desktop of windows without closing listers.
b) You can set up the lister with a new toolbar and entries and then make it
visible, rather than doing it in front of the user.
The lister set visible command allows you to make a lister visible or
not.
Example:
/* ListerVisible.dopus5 */
options results
address 'DOPUS.1'
dopus front
say pragma('d')
address command 'copy TuteRexx/extras/Surprise.info RAM:'
address command 'copy TuteRexx/extras/Example.tb RAM:'
lister new mode name invisible 'SYS:'
handle = result
dopus request '"Ready?" Yep'
lister set handle toolbar 'RAM:Example.tb'
lister set handle title 'Lister visible'
lister set handle visible on
address command wait 3
lister close handle
address command 'delete RAM:Example.tb'
address command 'delete RAM:Surprise.info'
dopus back
exit
|