Progress
Language 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-column, Button, Combo-box, Editor, Fill-in, Radio-set, Selection-list, Slider, Text, Toggle-box

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:

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 © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095