Progress
Programming
Handbook
Resizing Widgets Dynamically
Certain run-time conditions can make the size of a widget inappropriate:
- The font of a button, combo box, editor, fill-in, frame, radio button, selection list, slider, toggle box, or window changes.
- The format of the text displayed within a fill-in changes.
- The label of a button, toggle box, or radio button changes.
- The size of the image displayed within a button changes.
- A selection list’s or editor’s INNER–CHARS or INNER–LINES attribute changes.
By default, Progress resizes the widget if any of the above conditions occur. It determines the size that is most appropriate under the new conditions. This automatic resizing is governed by the value of the the Boolean AUTO–RESIZE attribute, which by default is on, or TRUE. If AUTO–RESIZE is on for a particular widget, then the widget will resize based on its physical characteristics (for example, font, label, and format).
Any of the following actions will stop Progress from automatically resizing widgets at run time:
Note that if you turn AUTO–RESIZE on for a widget whose size you have been controlling, Progress will compute a new size immediately; it will not wait until one of the previously mentioned conditions, such as a font change, occurs.
For a programming example that demonstrates the AUTO–RESIZE attribute, see the information on fill-ins in Representing Data."
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |