BBjGrid::setTrimBlankSpace

Description

In BBj 9.0 and higher, when a grid is larger in size than the size required to display the table and all required headers and scrollbars, this method controls whether the grid will be trimmed to the minimum size to display the table, headers and scrollbars.

Syntax

Return Value

Method

void

setTrimBlankSpace(boolean shouldTrim)

Parameters

Variable

Description

shouldTrim

If non-zero, grid will trim blank space.

0 = Not trimmed.

1 = Trimmed

Return Value

None.

Remarks

By default, a grid does not trim blank space.

Example

open(unt)"X0"
sysgui! = BBjAPI().getSysGui()
window! = sysgui!.addWindow(10,10,600,400,"test")
grid! = window!.addGrid(200, 10, 10, 400, 300)
grid!.setNumColumns(3)
grid!.setNumRows(3)
escape
print grid!.getTrimBlankSpace()
grid!.setTrimBlankSpace(1)

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

See the BBj Object Diagram for an illustration of the relationship between BBj Objects.