Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## AUTO-RESIZE attribute

> Tells Progress how to resize a widget when the LABEL, FONT, or FORMAT attribute of the widget changes.

> Data type: LOGICAL

> Access: Readable/Writeable

> Applies to: BROWSE widget (column), BUTTON widget, COMBO-BOX widget, EDITOR widget, FILL-IN widget, RADIO-SET widget, SELECTION-LIST widget, SLIDER widget, TEXT widget, TOGGLE-BOX widget

> 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, Progress 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:

> - Browse-columns

> - Buttons

> - Combo boxes

> - Editors

> - Fill-ins

> - Radio sets

> - Selection lists

> - Sliders

> - Texts

> - Toggle boxes

> For browse-columns, if you set the browse-column’s AUTO-RESIZE attribute to TRUE, Progress 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, Progress 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, Progress does not decrease the height of the rows, because the decrease might clip text in other columns.

> Note: If the developer changes the size of the widget at run time by using the HEIGHT-CHARS, HEIGHT-PIXELS, WIDTH-CHARS, or WIDTH-PIXELS attribute, Progress resets AUTO-RESIZE to FALSE.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095