Open display in Draw editor.
Button:
- Drag Button from toolbox
- Double Click the button and go to Settings
- Properties:
- Label Text: "Start Motor"
- Width: Auto
- Click Dynamics and check Actions:
- In Actions, choose ToggleValue
- In Object, type
@Tag.Equipment/MotorRunning
Numeric Input:
- Drag NumericTextBox from toolbox
- Double Click the button and go to Settings
- Bind LinkedValue to:
@Tag.Setpoint
- MinValue: 0, MaxValue: 100
2. Text Components
Text Display:
- Drag TextBlock from toolbox
- Double Click the button and go to Settings
- Text with {Tags}: {
Tag.TankFarm.Tank1/Temperature} °C
- On the bottom right menu set Font to 24
ProgressBar:
- Drag ProgressBar from toolbox
- Double Click the button and go to Settings
- Bind LinkedValue to:
@Tag.Tank_Level
- Maximum: 100
- On the bottom right menu set Font color to Red
Digital Gauge:
- Drag DigitalGauge from toolbox
- Double Click the button and go to Settings
- Bind LinkedValue to:
@Tag.Pump_Running
3. Gauge Components
Circular Gauge:
- Add CircularGauge
- Double Click the button and go to Settings
- Bind LinkedValue to:
@Tag.Pressure
- Minimum Value: 0
- Maximum Value: 150
- Major Ticks Quantity: 11 (means 0 to 100)
Linear Gauge:
- Add LinearGauge
- Double Click the button and go to Settings
- Gauge Orientation: Vertical
- Bind LinkedValue to:
@Tag.Tank_Level
4. Chart Components
Trend Chart:
- Add TrendChart
- Double Click the button and go to Settings
- Configure pens:
- Pen1: TankFarm/Tank1/Temp (Blue)
- Pen2: TankFarm/Tank1/Pressure (Red)
- Auto: true
Pie Chart:
- Add PieChart
- Double Click the button and go to Settings
- ChartType: Percent
- LinkedValue field:
- TankFarm/Tank1/Pressure (Blue)
- TankFarm/Tank2/Pressure (Red)
- Name field:
- Pressure Tank 1
- Pressure Tank 2
5. Container Components
Tab Control:
- Create three more pages with the following names:
- TankPage1
- TankPage2
- TankPage3
- Go back to your MainPage and add a TabControl
- Double Click the button and go to Settings
- Under Items Source Link set Designer and add three ChildDisplay components, and type the previous created display names in Linked Display
6. Images
Image Display:
- Find the Import File control
- Choose and image from your computer
- This image will be available to reuse once you import it the first time
Web Browser:
7. Advanced Interactions
ComboBox with Database:
- Add ComboBox control
- In ComboBox Properties → Uid, type combo1
- Go to the page Code Behind
- Inside the DisplayOpening function, add:
TComboBox ComboBox1 = this.CurrentDisplay.GetControl("combo1") as TComboBox;
DataTable dt = await @Dataset.Query.ActiveOrders.SelectCommandAsync();
if(dt != null && dt.Rows.Count > 0)
{
foreach(DataRow row in dt.Rows)
{
ComboBox1.Items.Add(row["ColumnName"].ToString());
}
}
- Consider changing the ColumnName to one of the columns of your query return
8. Dynamic Animations
Add dynamics to any control:
- Double click control
- Select Dynamics
- Add:
- Visibility: Show/hide by condition
- MoveDrag: Move based on value
- Scale: Resize dynamically
- FillColor: Change by state
- Rotate: Rotate by angle
9. Symbols
Create reusable control sets:
- Select controls to group:
- Choose any of the controls created in previous steps, or create two new controls
- Use Ctrl+click to select multiple controls
- Group the controls
- Click the Group button in the top horizontal toolbar
- Alternatively, Right-click → Group
- Create the symbol:
- Right-click on the grouped controls → Make New Symbol
- In the Name field, type: SymbolExample
- Click Yes to create the symbol
- Reuse across displays:
- The symbol now appears in the Symbol Library
- Drag and drop from the library to any display