SIZE phrase
- Last Updated: January 18, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
Specifies the width and height of a widget. You can express the dimensions in either character units or pixels.
Syntax
|
- { SIZE | SIZE-CHARS }
- Specifies that the unit of measure is characters.
- SIZE-PIXELS
- Specifies that the unit of measure is pixels.
- width
- Specifies the width of the widget. If the units are characters, width must be a decimal constant. If the units are pixels, width must be an integer constant.
- height
- Specifies the height of the widget. If the units are characters, the value height must be a decimal constant. If the units are pixels, height must be an integer constant.
Example
The following example uses SIZE phrases to set the initial dimensions of the rectangle rec and to set the dimensions of the frame sz-frame. When you choose the b_size button, the rectangle is randomly resized.
r-size.p
|
Notes
- ABL supports fractional character units. Therefore, if you express dimensions in characters, the width and height values can include up to two decimal places.
- For SpeedScript, the PIXEL options are not valid.
See also
COMBO-BOX phrase, DEFINE BROWSE statement, DEFINE BUTTON statement, DEFINE IMAGE statement, DEFINE RECTANGLE statement, EDITOR phrase, Frame phrase, RADIO-SET phrase, SELECTION-LIST phrase, SLIDER phrase