在下面的示例中,创建了一个名为 woutput1
窗口,并把它的定义保存到文件 temp.win
中。清除所有窗口后,又从该文件中恢复 woutput1
窗口,并将它激活。
clear
define window woutput1 from 2,1 to 13,75 title 'output' ;
close float grow shadow zoom
activate window woutput1
@ 1,1 say 'this is the contents of the window'
save windows woutput1 to temp
clear windows
wait window 'the window has been saved - press a key'
restore window woutput1 from temp
activate window woutput1
wait window 'the window has been restored - press a key'
deactivate window woutput1
release window woutput1
delete file temp.win