Progress
Version 9
Product Update Bulletin


FIT-LAST-COLUMN Attribute

The new FIT-LAST-COLUMN option for the DEFINE BROWSE statement and corresponding Browse widget attribute, allows the browse to be displayed so that there is no empty space to the right and no horizontal scroll bar by potentially widening or shrinking the last browse column’s width.

When this option is specified, and the last browse column can be fully or partially displayed in the browse’s viewport, then the last browse column’s width is adjusted so that it fits within the viewport with no empty space to its right and no horizontal scroll bar.
If the last browse column is fully contained in the viewport with empty space to its right, it grows so that its right edge is adjacent to the vertical scroll bar.
If the last browse column extends outside the viewport, it shrinks so its right edge is adjacent to the vertical scroll bar and the horizontal scroll bar is not needed.
The default value for the FIT-LAST-COLUMN attribute is FALSE.
Data Type: LOGICAL

Access: Readable/Writeble

Applies To: Browse Widget

The FIT-LAST-COLUMN attribute performs the same function as the EXPANDABLE attribute. Progress software recommends that you use the FIT-LAST-COLUMN attribute instead of the EXPANDABLE attribute. This recommendation includes replacing EXPANDABLE with FIT-LAST-COLUMN in your current code.

The following shows the DEFINE BROWSE statement syntax with FIT-LAST-COLUMN specified:

SYNTAX

DEFINE BROWSE b1 QUERY q1  
DISPLAY customer.cust-num customer.name  
ENABLE customer.cust-num WITH  3 DOWN WIDTH 40 FIT-LAST-COLUMN 

NOTES


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095