Screen .hmi syntax
Each Screen .hmi file contains the properties of an exported screen.
The file follows the structure:
namespace ViewDesigner;
using HMICatalog;
screen [name] {
<bindable setting values>
<class properties’ values>
<security roles>
<graphic element and AOG instances>
<user defined properties>
<state and color tables>
<triggers>
}
For example:
namespace ViewDesigner;
using HMICatalog;
Screen MyScreen {
ShowDefaultBanner := true;
FillColor := "#ffffff";
UpdateRate := EnumUpdateRate._500_ms;
// AOG Instance
PDF_Viewer_Landscape PDF_Viewer_Landscape_001 (
CurrentPage := "1",
DocumentName := "",
Zoom := "Fit width") {
X := 0;
Y := 0;
Width := 800;
Height := 553;
Angle := 0;
Enabled := true;
^Visible := true;
Opacity := 100;
Access := EnumElementAccessFamily.Inherit;
ForceAnimations := false;
}
// Trigger
OnTouchRelease TouchRelease_001 {
ReleaseOnOpenClose := false;
DisplayPopupCommand DisplayPopupCommand_001 (
Title := "Hello World",
Width := 500,
Height := 400,
PopupName := "User-Defined Screens\Popup_001"
)
}
}
Provide Feedback