禁用屏幕更新我有一个脚本,它执行许多表操作,如 Stack、update、split、summary 等。每个操作完成后都会显示一个表。我想问一下是否有办法在脚本开始时停止屏幕更新,然后在脚本结束时重新打开它们。
像这样......
//Open Data Table and set to invisible
dt = Open(file,invisible);
// Turn off screen update?
summaryABC = dt<< Summary(Group (:A,:B,:C); // This opens the table that I would like to hide
SummaryAB = summaryABC << Summary(Group (:A,:B);
// other misc table operations
//turn on screen update?
感谢您的帮助。
数据混合和清理回复:禁用屏幕更新@Jeff_Perkinson ,欣赏。 我会通读这个:)
回复:禁用屏幕更新@蒂埃里_S感谢您抽出宝贵的时间。 我很感激。 我喜欢使用隐形,我决定混合使用你和吉姆的解决方案。
回复:禁用屏幕更新@txnelson就像过去一样:)你让我直截了当,让我工作! 感谢您抽出宝贵的时间。 很高兴在这里见到你..
回复:禁用屏幕更新哎呀,
txnelson 提供了一个更好的解决方案。
最好的,
TS回复:禁用屏幕更新summaryABC = dt<< Summary(<U>Invisible</U>, Group (:A,:B,:C); // This hides the Summary ABC table
SummaryAB = summaryABC << Summary(Group (:A,:B);
// other misc table operations
//turn on screen update?
summaryABC << Bring Windows to Front; // This brings Summary ABC to the front
您是否考虑过在摘要命令中使用“不可见”开关(见上文)? 然后,您可以使用“将窗口置于前面”来恢复窗口。
注意:我还没有找到打开和关闭窗口隐藏状态的确切命令行。
最好的,
TS
回复:禁用屏幕更新没有通用的“不显示数据表”声明。
但是,几乎每个数据表操作都支持隐形或私密防止数据表出现的选项。
回复:禁用屏幕更新这是处理此问题的通用方法。Show Window() 函数可用于几乎所有窗口(如果不是所有窗口)来显示或不显示它们。
names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
dt << show window(0);
wait(5);
dt << show window(1);