General Widget Properties and Dialogs

Geometrygeneralwidgetprop.png

All widget have a common set of properties that appears first in the list of properties. They are the general geometry properties that set the widget position and size in the display window. Position is measured from the top left corner of the display window where x and y are the horizontal and vertical offset respectively. Offsets and sizes are measured in pixels. The layer property defines the Z order of the widget within the display so that a widget can be placed on top of another widget and be visible. By default , all widgets are created in layer 8 , which is the top-most layer.

x

Horizontal position in pixels from the display window’s left margin.

y

Vertical position in pixels from the display window’s top margin.

Width

Width of the widget in pixels.

Height

Height of the widget in pixels.

Layer

Layer to place the widget in. Default is 8, which is the top-most layer.

Border Propertiesborderprop.png

Most widgets have Border Properties. These properties control the drawing of a rectangle around the perimeter of the widget.

Type

Selects the type of bevel to draw.

none

Disables drawing a border.

bevellowered

Selects a border that makes the interior appear lowered relative to the exterior.

etchedlowered

Selects a border that appears to be a line etched into the plane of the interior and exterior.

bevelraised

Selects a border that makes the interior appear to be raised relative to the exterior.

etchedraised

Selects a border that appears to be a line in relief relative to the plane of the interior and exterior.

Outer Highlight Color

Color of the outer edges of the lit sides of the border.

Inner Highlight Color

Color of the inner edges of the lit sides of the border.

Outer Shadow Color

Color of the outer edges of the sides of the border in shadow.

Inner Shadow Color

Color of the inner edges of the sides of the border in shadow.

Font Chooser Dialogfontchooser.png

Font Family

Selects the font family from the list or by the first few letters of the family name being typed into the text box.

Point Size

Selects the point size from the list or by the size being typed into the text box.

Bold

Selects a heavy (bold) version of the font.

Italic

Selects a slanted (italic) version of the font.

Preview

Shows some sample text rendered in the selected font.

Selected Font

Shows the name of the selected font in the lower left corner.

OKok.png

Exits the dialog passing the selected font back to HMI Builder.

Cancelcancel00017.png

Exits the dialog without passing a new font back to HMI Builder.

Color Chooser Dialog

colorchooser.png 

Swatches

Displays a section of common colors to choose from.

Preview

Displays previews of the selected color in a variety of contexts.

Resetreset.png

Resets the selected color to be the same as the original color.

OK

Exits the dialog passing the selected color back to HMI Builder.

Cancelcancel00019.png

Exits the dialog without passing a new color back to HMI Builder.

HSVcolorchooser-hsb.png

Selects a color using the hue, saturation, brightness color space. Select one of H, S, or B to be the dimension adjusted by the vertical slider bar, and the other two dimensions can be adjusted by clicking within the square.

RGBcolorchooser-rgb.png

Selects a color using the Red, Green, Blue color space. Select each component using its slider or typing in its field or using the buttons next to its field to increment or decrement the value.

 

Widget Identifier

You can specify an identifier string for each widget that you add to the HMI. You can use the identifier string, for example, to validate the display file using an XML parsing utility.

hmi_builder_widgetid.png