Design a Media LED Widget
Introduction
The Media Led widget is a highly configurable widget that allows you to place a Led indicator on the screen in any colour and in a variety of styles.
It can be useful for indicating the status of an output and can display a symbol or text on top of the widget.
This tutorial requires basic knowledge about using the graphics editor. This includes adding widgets and modifying widget properties during design time. For more information regarding this, refer to the Graphics Editor manual.
Widget Properties
Size and Position
- Left and Top
-
Position of a widgets can be changed by entering values for the Left and Top properties.
-
Alternatively, the widget can be positioned by simply clicking and dragging into the desired position.
-
If the width or height of the Media Led widget is set to the maximum size of the display top or left dragging will not function.
- Width and Height
-
For the Media Led widget, the size properties, Width and Height, can be changed by entering the value of a known width and Height in pixels.
-
Or the width and height can be simply changed by dragging the red dotted widget outline to the required size.
Background
- Colour
-
The Media Led can be made to look recessed on the panel or background on which is placed. The colour for this recessed area can be changed to match the background colour by simply clicking on the Background Color property and the Colour selector will appear.
- Thickness
-
The recessed area of the Media Led and be altered by clicking on the property value.
-
If a recessed look is not required a 0 needs to be entered as the property value.
Bevel
- Colour
-
The Bevel Color property sets the colour of the outer edge (not the recess) and the next adjoining area that makes up of the parts of the Media Led widget. You can set the property by clicking on the value and using the colour selector in the same manner as the Background Color. Clicking on the property value will open the Colour Selector.
- Thickness
-
The Bevel Thickness Property sets the width of the outer edge.
Led
- Face Colour
-
The Face Color Property sets the colour of the ring outside the central Led.
- Colour On / Off
-
The LED Color properties set the appearance of the dynamic Led part when it is set to On or Off status. Usually, the Off colour will be a much darker shade than the On colour but they can be set to different colours if desired. You can set these properties by clicking on the value and using the colour selector.
- Styles
-
The Media Led has 12 styles to choose from.
-
The style can be chosen by clicking on the property value and select from the drop-down menu.
Symbol
- The Media Led can display a symbol or text centered in the central Led. The selection can be made from the drop-down menu by clicking on the property value.
- If no Symbol or Text is required select No Symbol from the menu. If Text is required Select Text Symbol from the menu.
- Colour
-
The Symbol or Text colour can be changed by clicking on the property value and using the Colour Selector to choose the colour.
Text & Font
- Text
-
The Text property can be changed by clicking on the area of the text in the Property Value or double click the Value to highlight the entire text and then type in the new text.
-
Clicking outside of the Text Property will set the new text.
- Font
-
The TIMI display has 3 system fonts to choose from and can be selected from the drop-down box.
- Font Size
-
Each font can have its size changed by altering the multiplier Value in the Font Size Property.
Demonstration
For this demonstration we will using 2 Media Led widgets to show a green tick and a red cross. For instructions on how to add a widget, refer to this discussion.
Add a Media Led and then set the properties as shown.
Add another Media Led and then set the properties as shown.
If the Genius environment is being used the demonstration can be tested by entering simple code in the code window.
Ensure that the Port is set to the correct port that the TIMI module is connected to.
If the Genius environment is being used the demonstration can be tested by entering simple code in the code window.
and then click on the Upload Button to Upload the entire project to the display.
When the Upload has completed you should see the Tick and Cross flash alternately.
Or the page can be used in the Commander environment by saving the Page and clicking in the Object Selector to choose Page0.
Then Click on Save Configuration.
A Save Dialogue Window will appear. Enter a filename (TickCrossIndicator) then click on Save
You can find out further information about the Commander Environment in the Getting Started with the Commander Environment tutorial.