NO-EMPTY-SPACE attribute
(Graphical interface only)Allows the browse to display with no empty space to the right and no horizontal scroll bar.
Data type: LOGICAL
Access: Readable/Writeable
Applies to: BROWSE widget
When the last browse column can be fully displayed in the browse viewport with empty space to the right, you can use NO-EMPTY-SPACE attribute to widen the width of the last browse column so that the column fits within the viewport with no empty space to its right and no horizontal scroll bar.
The default value is FALSE.
The following shows the DEFINE BROWSE statement syntax with NO-EMPTY-SPACE specified:
NO-EMPTY-SPACE is primarily intended for use in the initial layout of a static browse. It is most useful when laying out a browse with a specified width when you have only a few browse columns, and you want to fully use the available space in your viewport.
If the NO-EMPTY-SPACE is set to TRUE and there is empty space, the last browse column is widened to fill up the space. Also, if any browse column’s width attribute is changed or the browse’s width attribute is changed so that the last browse column is fully displayed in the browse’s viewport with empty space to its right, then the last browse column’s width is widened so that it fits within the viewport with no empty space and no horizontal scroll bar.
NO-EMPTY-SPACE never reduces the width of the last browse column.
NO-EMPTY-SPACE is ignored under the following circumstances:
- When the last browse column’s width is explicitly set at run time after the browse is realized.
- When the last browse column displays partially or entirely outside of the viewport.
- If NO-EMPTY-SPACE is set to FALSE, the last browse column’s width remains the same and is never changed by the AVM.
- If you specify NO-EMPTY-SPACE for an individual browse, and the
-expandbrow
startup parameter is also specified, then the NO-EMPTY-SPACE attribute overrides-expandbrow
for that browse.- When you use NO-EMPTY-SPACE, the original width of the last browse column is not remembered. For example, if the original width of the last browse column is 48 pixels, the DEFINE BROWSE statement has NO-EMPTY-SPACE specified, and if at run time there are 12 blank pixels as empty space in the right side of the viewport, the last browse column’s width is increased to 60 pixels, so there is no blank space in the browse.
- If later at run time, the width of a column other than the last column is increased, a horizontal scroll bar is added to the browse. The width for the last browse column remains at 60 pixels.
OpenEdge Release 10.2B
|