BBjGridHeader

Description

The BBjGridHeader is an object representation of a header of a BBjGrid.

Creation

BBjAPI > BBjSysGui > BBjWindow > BBjGrid > BBjGridHeader

A BBjGridHeader is obtained from a BBjGrid using one of the following methods of the BBjGrid:

Return Value

Method

BBjGridHeader

getRowHeader()

BBjGridHeader

getColumnHeader()

Methods of BBjGridHeader

Return Value

Method

int

getCellAlignment(int index)

BBjColor

getCellBackColor(int index)

BBjColor

getCellForeColor(int index)

int

getCellStyle(int index)

string

getCellText(int index)

int

getDefaultAlignment()

int

getDefaultStyle()

int

getStringWidth(string string)

string

getToolTipText()

getToolTipText(int index)

void

setCellAlignment(int index, int alignment)

void

setCellBackColor(int index, BBjColor color)

void

setCellIcon(int imgList, int imgIndex, int index)

void

setCellForeColor(int index, BBjColor color)

void

setCellStyle(int index, int style)

void

setCellText(int index, string text)

void

setDefaultAlignment(int alignment)

void

setDefaultStyle(int style)

void

setToolTipText(string text)

setToolTipText(int index, string text)

Remarks

Except for the method getStringWidth() each of the methods of a BBjGridHeader is equivalent to a corresponding method of a BBjGrid.

So, for example:

   Grid!.setColumnHeaderCellForeColor(3, blue!)

   Grid!.setColumnHeaderCellText(5,"abc")

Is equivalent to:

   Header! = Grid!.getColumnHeader()

   Header!.setCellForeColor(3, blue!)

   Header!.setCellText(5, "abc")

Events

Callback Code

Object-oriented Event

Read Record Event

Code

ON_GRID_DOUBLE_CLICK

BBjGridDoubleClickEvent

DCLICKED Grid Notify Event

N (Notify code 3)

ON_GRID_MOUSE_DOWN

BBjGridMouseDownEvent

LCLICKED Grid Notify Event

N (Notify code 14)

ON_GRID_MOUSE_UP

BBjGridMouseUpEvent

LCLICKED Grid Notify Event

N (Notify code 14)

ON_GRID_RIGHT_MOUSE_DOWN

BBjGridRightMouseDownEvent

RCLICKED Grid Notify Event

N (Notify code 18)

ON_GRID_RIGHT_MOUSE_UP

BBjGridRightMouseUpEvent

RCLICKED Grid Notify Event

N (Notify code 18)

ON_GRID_UPDATE

BBjGridUpdateEvent

TABLEUPDATE Grid Notify Event

N (Notify code 22)

Constants

Name

GRID_STYLE_BUTTON_UP

GRID_STYLE_BUTTON_DOWN

GRID_ALIGN_LEFT

GRID_ALIGN_RIGHT

GRID_ALIGN_CENTER

Constants inherited from BBjControl

See Also

BBjAPI()

BBj Object Variables

BBj Object Creation and Assignment

BBj Object Error Handling

BBj Object Operators

CALLBACK Verb - Register BBj Subroutine

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