
BBjWindow::addDataBoundGrid
Description
In BBj 7.0 and higher, this method creates a data bound grid control in the BBjWindow.
Syntax
Return Value |
Method |
addDataBoundGrid(int ID, int x, int y, int width, int height) |
|
addDataBoundGrid(int ID, int x, int y, int width, int height, string flags) |
Parameters
Variable |
Description |
|
ID |
A positive integer that will be used to identify the grid. This number must be unique among the controls in the current window. |
|
height |
Horizontal position of the upper-left corner of the grid in currently-scaled CONTROL units, relative to the inside of the window containing it. |
|
width |
Vertical position of the upper-left corner of the grid in currently-scaled CONTROL units, relative to the inside of the window containing it. |
|
x |
Width of the control in current units. Height of the control in current units. |
|
y |
May be empty or a two-byte binary string composed of any hexadecimal addition of the following values: |
|
flags |
A positive integer that will be used to identify the grid. This number must be unique among the controls in the current window. |
|
|
Flag |
Description |
|
$0001$ |
Sets the grid control to be initially disabled. |
|
$0002$ |
Creates a managed grid control as a column heading. |
|
$0008$ |
Allows users to resize grid columns. |
|
$0010$ |
Sets the grid to be initially invisible. The grid can be made visible with the following command: print(sysgui) 'show'(id) |
|
$0020$ |
Draws vertical lines between columns in Visual PRO/5 2.0x. In Visual PRO/5 2.10 and higher, use flag $8000$ to draw vertical lines. The default behavior in Visual PRO/5 2.10 and higher is for this flag to do nothing. However, if the 2.10 backward compatibility SETOPTS bit (byte 7, bit $08$) is set, this flag will cause vertical lines to be drawn. |
|
$0040$ |
Draws horizontal lines between rows. |
|
$0080$ |
Includes a horizontal scroll bar with the control. |
|
$0100$ |
Includes a vertical scroll bar with the control. |
|
$0800$ |
Creates a three-dimensional recessed client edge around the control. Note that the client edge is displayed inside the control's bounding rectangle, slightly reducing the visible area of the grid. |
|
$1000$ |
Creates a three-dimensional raised edge around the control. Note that the raised edge is displayed inside the control's bounding rectangle, slightly reducing the visible area of the grid. |
|
$8000$ |
Draws vertical lines between columns. |
Return Value
This method returns the created BBjDataBoundGrid object.
Remarks
The number of rows and columns will be determined by the BBjRecordSet to which the BBjDataBoundGrid is bound.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.