Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ InTouch HMI

多个图形情形 1

  • Last UpdatedApr 24, 2026
  • 1 minute read

您需要使用相同的界面元素(例如,按钮)来打开多个图形。

为了实现该目的,您可以使用以下脚本:

Dim graphicInfo as aaGraphic.GraphicInfo;

graphicInfo.Identity = "i1";

graphicInfo.GraphicName = "AnalogHiLo";

graphicInfo.HasTitleBar = true;

graphicInfo.WindowTitle = "Analog Meter 1";

graphicInfo.Resizable = true;

graphicInfo.WindowLocation = aaGraphic.WindowLocation.Leftside;

graphicInfo.WindowType = aaGraphic.WindowType.Modeless;

ShowGraphic( graphicInfo );

graphicInfo.Identity = "i2";

graphicInfo.GraphicName = "AnalogHiLo";

graphicInfo.HasTitleBar = true;

graphicInfo.WindowTitle = "Analog Meter 2";

graphicInfo.Resizable = true;

graphicInfo.WindowLocation = aaGraphic.WindowLocation.Center;

graphicInfo.WindowType = aaGraphic.WindowType.Modeless;

ShowGraphic( graphicInfo );

graphicInfo.Identity = "i3";

graphicInfo.GraphicName = "AnalogHiLo";

graphicInfo.HasTitleBar = true;

graphicInfo.WindowTitle = "Analog Meter 3";

graphicInfo.Resizable = true;

graphicInfo.WindowLocation = aaGraphic.WindowLocation.Rightside;

graphicInfo.WindowType = aaGraphic.WindowType.Modal;

ShowGraphic( graphicInfo );

如果希望打开多个弹出窗口,只有最后一个弹出窗口可以是模式窗口。所有其它弹出窗口可以是无模式窗口。如果任何其它弹出窗口是模式窗口,则将在第一个模式弹出窗口打开之后阻止该脚本。如需详细信息,请参阅模式窗口和 ShowGraphic() 函数

在运行时,单击 ShowGraphicMultipleSymbols 按钮可打开所有图形:

Setting up a multi-graphic process at runtime