Page Tree
Other Releases
Displays are components of the user interface of your application. A display can have multiple elements in it, which include controls, data display areas, static areas that always display, and more.
Elements of a display can be static, that is, they always display, such as a menu bar, toolbar, or a status bar. Displays can also change depending on what the user clicks on or selects.
To create a new Display, go to Draw > Drawing. Click Close Display and Create New One. (If you do not see this button in the toolbar, make your window wider.)
The New Display window will open. Enter information, as needed.
Column Description | |
Display Name | Enter a name for the display. |
Description | Enter a description for the display. |
.NET Smart Client | Select this option if the display is designed to be presented natively on the host platform. |
HTML5 | If you plan to use this display as HTML5 on browsers, select this option when you create the display. You cannot change it later. Select this to use this display with any browser. When you select this option, the display settings in other parts of the Draw area only show options that are compatible with the HTML5 feature. |
iPad/iPhone iOS Target | If you plan to use this display for iPad and iPhone users, select this option when you create the display. You cannot change it later. Select this to be able to use this display with iPads and iPhones. When you select this option, the display settings in other parts of the Draw area only show options that are applicable to both Windows and iPads/iPhones. Select the default view for iPad and iPhone users: Landscape or Portrait. |
On the left side of the window in the DisplaySettings, enter or select information, as needed. If you selected the iPad/iPhone iOS Target or HTML5 option when you created the display, not all of the DisplaySettings are available.
The main option in the Display settings is the Display Mode. There are 4 different modes you can choose from:
There are many ways to open a new Display or Popup. For each method, specific characteristics must be considered. Below you will find every method for opening a new Display with some description on their behavior and how to use them.
@Display.<DisplayName>.Open(); E.g.: @Display.MainPage.Open();
@Display.<DisplayName>.OpenModal();E.g.:@Display.MainPage.OpenModal();
@Display.<DisplayName>.NewPopup(LabelList[label1=tag1;label2=tag2],Left,Top, Width,Height); E.g.: @Display.MyPopup.NewPopup("PID=PID1;NAME=’PID 1’");
@Display.OpenDisplay("DisplayName");@Display.OpenDisplay("About");
@Client.OpenDisplayAtIndex(string DisplayName,int index);E.g.:@Client.OpenDisplayAtIndex("MainPage",0);
@Client.NewPopup(string DisplayName, LabelList[label1=tag1;label2=tag2],Left, Top,Width,Height);E.g.: @Client.NewPopup("PopupPID","PID=PID1;NAME=’PID 1’");
With most systems, you must create custom logic for your projects and create Tags or Variables for all internal properties. Namespaces allow your application to directly access all the objects that you created in your project.
This means that user-created temporary tags are not required to manage the status of PLC network nodes, the total number of alarms in a group, or the number of rows in a dataset. You can now access runtime objects, business objects (representing a network node), or an alarm group or dataset. Then, you can display the required information or take action directly through the object's built-in properties.
When you are building a project's configuration, filling input fields, or creating scripts, the system uses Intellisense auto-completion to guide you to all the existing properties that you are allowed to use according to what you are editing. This feature allows you to easily ‘drill down’ to a specific property.
When accessing a project object in the .NET Script Editor, it is necessary to prefix the namespace with an ‘@’ symbol in order to avoid conflict with the .NET local variables names.
Below you will find a list of the Display namespace's properties and methods and some properties from the Client namespace.
Category: ReadOnly property with categories that are configured for the Display Object in Run > Dictionaries > Categories. Used for organization purposes.
Description: Description of the display, configured in Edit > Displays > Displays.
HorizontalScroll: Indicates the horizontal scroll value.
Id Object: Object ID (Internal Use). Can be found at Edit > Displays > Displays.
IsOpened: Indicates if the selected display is opened.
Level: ReadOnly property with levels configured for the Display Object in Edit > Tags > Assets.
VerticalScroll: Indicates the vertical scroll value.
ZoomLevel: Indicates the zoom level of the page. One is the normal zoom level. See images to see a difference between zoom level 1 and 2.
Close()
bool sts = @Display.About.Close();
GetCustomPropertiesAsString(string sep)
string msg = @Display.About.GetCustomPropertiesAsString(",");
GetCustomPropertyValue(string PropertyName,string defaultValue):
@Display.MainPage.GetCustomPropertyValue("p1","-1")
NewPopup(object[] items):
@Display.MyPopup.NewPopup("Max=MaxValue;Min=MinValue");
Open()
bool sts = @Display.About.Open();
OpenModal()
bool sts = @Display.MainPage.OpenModal();
PrintDisplay(bool defaultPrinter)
bool sts = @Display.MainPage.PrintDisplay(true);
PrintDisplayDefaultPrinter(int PageOrientation) :
bool sts = @Display.MainPage.PrintDisplayDefaultPrinter(0);
RemoveAllCustomProperties():
@Display.LogOn.RemoveAllCustomProperties();
SetCustomProperties(string str, string sep)
@Display.MainPage.SetCustomProperties("p1=10;p2=20", ";")
SetCustomPropertyValue(string propertyName, object propertyValue)
@Display.MainPage.SetCustomPropertyValue("p1", 50")