Popup .hmi syntax
Each Popup .hmi file contains the properties of an exported popup.
The file follows the structure:
namespace ViewDesigner;
using HMICatalog;
popup [name] {
<bindable setting values>
<class properties’ values>
<security roles>
<graphic element and AOG instances>
<user defined properties>
<state/color tables>
<triggers>
}
For example:
namespace ViewDesigner;
using HMICatalog;
Popup Popup_001 {
CaptionVisible := true;
CloseButtonVisible := true;
Caption := "Popup Caption";
UpdateRate := EnumUpdateRate._500_ms;
FillColor := "#263a4e";
BackgroundOpacity := 100;
Cacheable := false;
Button Button_002 {
FillColor := "#263a4e";
Border {
Color := "#262324";
BorderStyle {
Line := PenStyle.SolidLine;
Cap := CapStyle.SquareCap;
Join := JoinStyle.MiterJoin;
}
Width := 2;
}
CornerRadius := 3;
TextAlignment := EnumAlignment.HCENTER_VCENTER;
FontName := "Arial Unicode MS";
FontSize := 12;
FontColor := "#ffffff";
Bold := true;
Text := "Go to screen";
UsePredefinedDisabled := true;
BehaviorNavigateToScreen BehaviorNavigateToScreen_001 (
Message := "Hello World")
{
screenName := "User-Defined Screens\Screen_002";
Key := EnumBezelKeys.VK_NONE;
RequiresFocus := false;
AlwaysTriggerReleaseEvent := false;
}
X := 294.82;
Y := 166;
Width := 100;
Height := 30;
Angle := 0;
Enabled := true;
^Visible := true;
Opacity := 100;
Access := EnumElementAccessFamily.Inherit;
ForceAnimations := false;
}
}
Provide Feedback