GRID Mnemonic - Create a Grid Control

BBj-Specific Information

Main and Heading Grids

For this topic's original documentation, see the GRID Mnemonic - Create a Grid Control.

In ResBuilder and the GRID mnemonic, the main grid and its header grid(s), if any, are handled as one control.

Once the grid is created, VPRO/5 generally treats the main grid and column/header grids as three separate controls. For example, each grid can be moved independently, and the location of each grid queried independently. Because of this, ResBuilder and VPRO/5 become unsynchronized. For example, if a grid is created with a column header in ResBuilder and the x,y coordinates set to 50,50, the entire grid displays at 50,50 in VPRO/5.

Querying the location of the main grid in VPRO/5 returns the position of the main grid, ignoring the location of the column header grid.

In BBj, the grid and its headers are always handled as one unit.

Although separate IDs can still be used, getting or setting the location of a header or a main grid, always gets the top left of the grid encapsulating all parts. This may produce different results than Visual PRO/5 if a grid is moved. It may be at a different location than expected, and headers cannot be moved to anywhere other than next to or on top of the grid.

In BBj, the scrollbar will only show up when it is needed. For example, the scrollbar would appear when the number of rows or columns is greater than the display space.

Parameter

Description

colheadheight

In BBj, the grid mnemonic value for setting the column header height is ignored. The height is set depending on the font used.

maxcol

In BBj 12.0 and higher, this parameter is ignored as it is not necessary to set a column limit.

For more information, see Grid Tutorial 2 - Standard Grid Using BBjGrid Methods.

See Also

Mnemonics - Alphabetical Listing

Mnemonics - Group Listing