Knowledge Base
Valid For#HMI
Applies ToHMI430

This function sets a rectangular boundary so all clear screen and text print operations will be contained within the boundary.

Function Prototype
# SetBounds(
x:LeftEdge,
y:TopEdge | b:TopBaseline,
w:Width,
h:Height
)
ParameterOptionDescription
xoptionalThe left edge of the bounding box.  Any of the positioning methods may be used.
yoptional, or bThe top edge of the bounding box, or if you prefer you may use b instead.  Any of the positioning methods may be used.
boptional, or yThe top baseline of the bounding box based on the current font.  May be used instead of y.  Any of the positioning methods may be used.
woptionalThe width of the bounding box.
hoptionalThe height of the bounding box.
Description

By default, the HMI bounding box is the whole screen.  However if you wish to limit text to a smaller region of the screen, then use a bounding box to set those limits.

Any parameters that are no specified will remain unchanged.

Use “b” when you want to line up the top of the bounding box with a line of text.  More information on baseline can be found in SetFont().