Progress
Language Reference
SIZE Phrase
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.
EXAMPLEThe 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.
NOTES
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
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |