Progress
Version 9
Product Update Bulletin
NO-EMPTY-SPACE Attribute
The NO-EMPTY-SPACE option for the DEFINE BROWSE statement and the corresponding Browse widget attribute, allows the browse to display with no empty space to the right and no horizontal scroll bar.
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 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 for the NO-EMPTY-SPACE is FALSE.
Data Type: LOGICALAccess: Readable/WritebleApplies To: Browse widgetThe following shows the DEFINE BROWSE statement syntax with NO-EMPTY-SPACE specified:
SYNTAX
NOTES
- You cannot specify both NO-EMPTY-SPACE and FIT-LAST-COLUMN for the DEFINE BROWSE statement. If you specify both, the compiler displays an error message. If you set one of these attributes to TRUE and the other attribute is already TRUE, a warning message displays at run time.
- 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.
- Under the following circumstances, NO-EMPTY-SPACE is ignored:
- If NO-EMPTY-SPACE is set to FALSE, the last browse column’s width remains the same and is never changed by Progress.
- 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.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |