Method XbpCellGroup():new() Foundation
Creates an instance of the XbpCellGroup class.
XbpCellGroup():new( [<oParent>] , ;
[<oOwner>] , ;
[<aPos>] , ;
[<aSize>] , ;
[<aPresParam>], ;
[<lVisible>] ) --> oXbpCellGroup
The class method :new() returns an XbpCellGroup object.
The appearance of an XbpCellGroup object can be modified in greater detail using special presentation parameters found in the XBP.CH file.
Constant | Description |
---|---|
XBP_PP_HILITE_FGCLR | Foreground color for highlight |
XBP_PP_HILITE_BGCLR | Background color for highlight |
XBP_PP_CGRP_ROWWIDTH | Width of the frame in pixel |
XBP_PP_CGRP_ROWHEIGHT | Height of the frame in pixel |
XBP_PP_CGRP_CELLWIDTH | Width of the cell in pixel |
XBP_PP_CGRP_CELLHEIGHT | Height of the cell in pixel |
XBP_PP_CGRP_CELLALIGNMENT | Alignment of a cell within frame |
XBP_PP_CGRP_HSEPARATOR | Horizontal separator line |
XBP_PP_CGRP_VSEPARATOR | Vertical separator line |
XBP_PP_CGRP_FRAMELAYOUT | Frame type |
XBP_PP_CGRP_CELLFRAMELAYOUT | Border of cell within frame |
XBP_PP_CGRP_HILITEFRAMELAYOUT | Frame type of highlighted cell |
Colors: Values for foreground and background colors (constants *FGCLR and *BGCLR) are #define constants prefixed with GRA_CLR_ or XBPSYSCLR_.
Height and width: The default value for presentation parameters defining height or width (constants *HEIGHT and *WIDTH) is XBP_AUTOSIZE. This means: an XbpCellGroup object calculates height and width from the font and its reference string. Height and width can be specified with numeric values indicating number of pixels.
Alignment: Display of textual data in the cells is left aligned by default. The value for *ALIGNMENT is changed with constants listed in the next table. These constants can be added to define horizontal and vertical alignment:
Constant | Description |
---|---|
XBPALIGN_TOP | Alignment at the top |
XBPALIGN_LEFT | Alignment on the left |
XBPALIGN_BOTTOM | Alignment at the bottom |
XBPALIGN_RIGHT | Alignment on the right |
XBPALIGN_HCENTER | Horizontally centered |
XBPALIGN_VCENTER | Vertically centered |
Separator lines: cells are displayed without separating lines by default. Constants that can be used as values for the presentation parameters *SEPARATOR are listed below:
Constant | Description |
---|---|
XBPLINE_NONE *) | No separating line |
XBPLINE_NORMAL | Normal line |
XBPLINE_DASHED | Dashed line |
XBPLINE_DOTTED | Dotted line |
|
Frames: All presentation parameters ending with *FRAMELAYOUT configure borders, or frame types, of cells displayed in a cell group. Constants of the next table can be added to define a frame layout:
Constant | Description |
---|---|
XBPFRAME_NONE *) | No frame |
XBPFRAME_RECT | Frame with no foreground |
XBPFRAME_BOX | Frame with foreground |
XBPFRAME_RAISED | Raised frame |
XBPFRAME_RECESSED | Recessed frame |
XBPFRAME_THICK | Thick frame |
XBPFRAME_DASHED | Dashed frame |
XBPFRAME_DOTTED | Dotted frame |
|
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.