# SetBounds()
| Valid For | #HMI |
|---|---|
| Applies To | HMI430 |
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
)
| Parameter | Option | Description |
|---|---|---|
| x | optional | The left edge of the bounding box. Any of the positioning methods may be used. |
| y | optional, or b | The top edge of the bounding box, or if you prefer you may use b instead. Any of the positioning methods may be used. |
| b | optional, or y | The 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. |
| w | optional | The width of the bounding box. |
| h | optional | The 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().