BBjGridHeader
Creation Path
BBjAPI > BBjSysGui > BBjWindow > BBjGrid > BBjGridHeader
Description
The BBjGridHeader is an object representation of a header of a BBjGrid.
Creation
A BBjGridHeader is obtained from a BBjGrid
using one of the following methods of the BBjGrid:
Return Value |
Method |
BBjGridHeader |
|
BBjGridHeader |
Methods of BBjGridHeader
Return Value |
Method |
int |
getCellAlignment(int p_index) |
getCellBackColor(int p_index) |
|
getCellForeColor(int p_index) |
|
int |
getCellStyle(int p_index) |
string |
getCellText(int p_index) |
int |
|
int |
|
int |
getStringWidth(string p_string) |
string |
|
string |
getToolTipText(int index) |
void |
setCellAlignment(int p_index, int p_alignment) |
void |
setCellBackColor(int p_index, BBjColor p_color) |
void |
setCellIcon(int imgList, int imgIndex, int p_index) |
void |
setCellForeColor(int p_index, BBjColor p_color) |
void |
setCellStyle(int p_index, int p_style) |
void |
setCellText(int p_index, string p_text) |
void |
setDefaultAlignment(int p_alignment) |
void |
setDefaultStyle(int p_style) |
void |
setToolTipText(string text) |
void |
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 |
N (Notify code 3) |
||
ON_GRID_MOUSE_DOWN |
N (Notify code 14) |
||
ON_GRID_MOUSE_UP |
N (Notify code 14) |
||
ON_GRID_RIGHT_MOUSE_DOWN |
N (Notify code 18) |
||
ON_GRID_RIGHT_MOUSE_UP |
N (Notify code 18) |
||
ON_GRID_UPDATE |
N (Notify code 22) |
Constants
GRID_STYLE_BUTTON_UP |
GRID_STYLE_BUTTON_DOWN |
GRID_ALIGN_LEFT |
GRID_ALIGN_RIGHT |
GRID_ALIGN_CENTER |
Constants inherited from BBjControl
See Also
BBj Object Creation and Assignment
CALLBACK Verb - Register BBj Subroutine
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.