Previous Next

AUTO-RESIZE attribute

(Graphical interfaces only)
Tells the AVM how to resize a widget when the LABEL, FONT, or FORMAT attribute of the widget changes.
Data type:
Access:
Applies to:
If the AUTO-RESIZE attribute is TRUE, the widget automatically resizes when the LABEL, FONT or FORMAT attributes of the widget change. If AUTO-RESIZE is FALSE, the widget retains its original size.
The default value for this attribute is TRUE for widgets that are not explicitly sized when they are defined, and FALSE for explicitly sized widgets.
When the AUTO-RESIZE attribute is set to TRUE, the AVM resizes button and toggle-box widgets with run-time changes to the LABEL attribute, and combo-box and fill-in field widgets with run-time changes to the FORMAT attribute.
This attribute resizes the following widgets with run-time changes to the FONT attribute:
*
*
*
*
*
*
*
*
*
*
For browse columns, if you set the browse column’s AUTO-RESIZE attribute to TRUE, the AVM resizes the browse column when a change occurs in the browse column’s font or in the font or text of the browse column’s label.
If the font of a browse column grows such that the height needs to be increased, the AVM increases the height of all cells in the browse column, which increases the row height of the browse (because all rows have the same height). This might affect the DOWN, ROW-HEIGHT-CHARS, and ROW-HEIGHT-PIXELS attributes of the browse column.
If the font of a browse column decreases, the AVM does not decrease the height of the rows, because the decrease might clip text in other columns.
Note:

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.