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:

DEFINE BROWSE b1 QUERY q1 
  DISPLAY Customer.CustNum Customer.Name 
  ENABLE Customer.CustNum WITH 3 DOWN WIDTH 40 NO-EMPTY-SPACE

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: