BBjGrid::setCellVerticalAlignment

Description

In BBj 18.00 and higher, this method sets the cell vertical alignment of a BBjGrid cell.

Syntax

Return Value

Method

void

setCellVerticalAlignment(int row, int column, int align)

Parameters

Variable

Description

align

 

Specifies the cell vertical alignment from one of the following Align Value Constants:

GRID_ALIGN_TOP

GRID_ALIGN_CENTER

GRID_ALIGN_BOTTOM

row

Specifies the row of a cell.

column

Specifies the column of a cell.

Return Value

None.

Example

gui! = BBjAPI().openSysGui("X0")
wnd! = gui!.addWindow(gui!.getAvailableContext(),100,50,500,400,"Grid Test")
grd! = wnd!.addGrid(wnd!.getAvailableControlID(),32,24,252,133)
grd!.setNumColumns(2)
grd!.setFitToGrid(BBjGrid.AUTO_RESIZE_NEXT_COLUMN)
vec! = new BBjVector()
vec!.addItem("1")
vec!.addItem("Item 1")
vec!.addItem("2")
vec!.addItem("Item 2")
vec!.addItem("3")
vec!.addItem("Item 3")
grd!.setNumRows(3)
grd!.setCellText(vec!)
grd!.setCellVerticalAlignment(0,0,2)
print grd!.getCellVerticalAlignment(0,0)
wnd!.setCallback(wnd!.ON_CLOSE,"close")
process_events

close:
release

ClosedVersion History

  • BBj 18.00: BBjGrid::setCellVerticalAlignment added.

See Also

BBjAPI

BBjSysGui

BBjControl

BBjWindow

BBjGrid - Grid Cell Alignment

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