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

Industrial Graphic Editor

Multiple graphics scenario 1

  • Last UpdatedJan 31, 2025
  • 1 minute read

You need to open several graphics using the same interface element, such as a pushbutton.

You can use the following script for the purpose:

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 );

If you want to open multiple pop-up windows, only the last pop-up window can be modal. All other pop-up windows can be modeless. If any other pop-up window is modal, then the script will be blocked after the first modal pop-up window is opened. For more information, see Modal windows and the ShowGraphic() function.

At runtime, click the ShowGraphicMultipleSymbols pushbutton to open all the graphics:

Setting up a multi-graphic process at runtime

TitleResults for “How to create a CRG?”Also Available in