The PBCatEdt table
Column | Column name | Description |
---|---|---|
1 | pbe_name | Edit style name |
2 | pbe_edit | Format string (edit style type dependent; see below) |
3 | pbe_type | Edit style type (see below) |
4 | pbe_cntr | Revision counter (increments each time edit style is altered) |
5 | pbe_seqn | Row sequence number for edit types requiring more than one row in PBCatEdt table |
6 | pbe_flag | Edit style flag (edit style type dependent; see below) |
7 | pbe_work | Extra field (edit style type dependent; see below) |
Available edit style types
The following edit style types are available:
Edit style type | pbe_type value (column 3) |
---|---|
CheckBox | 85 |
RadioButton | 86 |
DropDownListBox | 87 |
DropDownDataWindow | 88 |
Edit | 89 |
Edit Mask | 90 |
CheckBox edit style (code 85)
Here is a sample row in the PBCatEdt table for a CheckBox
edit style:
Name | Edit | Type | Cntr | Seqn | Flag | Work |
---|---|---|---|---|---|---|
MyEdit | Text | 85 | 1 | 1 | Flag | |
MyEdit | OnValue | 85 | 1 | 2 | 0 | |
MyEdit | OffValue | 85 | 1 | 3 | 0 | |
MyEdit | ThirdValue | 85 | 1 | 4 | 0 |
where:
Value | Meaning |
---|---|
Text | CheckBox text |
OnValue | Data value for On state |
OffValue | Data value for Off state |
ThirdValue | Data value for Third state (this row exists only if 3 State is checked for the edit style–bit 30 of Flag is 1) |
Flag | 32-bit flag. Low-order four hex digits are generic edit type; high-order four are styles within the type. A 1 in any bit indicates the corresponding style is checked. A 0 in any bit indicates the corresponding style is unchecked
|
RadioButton edit style (code 86)
Here is a sample row in the PBCatEdt table for a RadioButton
edit style:
Name | Edit | Type | Cntr | Seqn | Flag | Work |
---|---|---|---|---|---|---|
MyEdit | Columns | 86 | 1 | 1 | Flag | |
MyEdit | Display1 | 86 | 1 | 2 | 0 | |
MyEdit | Data1 | 86 | 1 | 3 | 0 | |
MyEdit | Display2 | 86 | 1 | 4 | 0 | |
MyEdit | Data2 | 86 | 1 | 5 | 0 |
where:
Value | Meaning |
---|---|
Columns | Character representation (in decimal) of number of columns (buttons) across |
Display1 | Display value for first button |
Data1 | Data value for first button |
Display2 | Display value for second button |
Data2 | Data value for second button
About the display and data values Display and data values are repeated in pairs for each radio |
Flag | 32-bit flag. Low-order four hex digits are generic edit type; high-order four are styles within the type. A 1 in any bit indicates the corresponding style is checked. A 0 in any bit indicates the corresponding style is unchecked
|
DropDownListBox edit style (code 87)
Here is a sample row in the PBCatEdt table for a DropDownListBox
edit style:
Name | Edit | Type | Cntr | Seqn | Flag | Work |
---|---|---|---|---|---|---|
MyEdit | Limit | 87 | 1 | 1 | Flag | Key |
MyEdit | Display1 | 87 | 1 | 2 | 0 | |
MyEdit | Data1 | 87 | 1 | 3 | 0 | |
MyEdit | Display2 | 87 | 1 | 4 | 0 | |
MyEdit | Data2 | 87 | 1 | 5 | 0 |
where:
Value | Meaning |
---|---|
Limit | Character representation (in decimal) of the Limit value |
Key | One-character accelerator key |
Display1 | Display value for first entry in code table |
Data1 | Data value for first entry in code table |
Display2 | Display value for second entry in code table |
Data2 | Data value for second entry in code table
About the display and data values Display and data values are repeated in pairs for each entry |
Flag | 32-bit flag. Low-order four hex digits are generic edit type; high-order four are styles within the type. A 1 in any bit indicates the corresponding style is checked. A 0 in any bit indicates the corresponding style is unchecked
|
DropDownDataWindow edit style (code 88)
Here is a sample row in the PBCatEdt table for a DropDownDataWindow
edit style:
Name | Edit | Type | Cntr | Seqn | Flag | Work |
---|---|---|---|---|---|---|
MyEdit | DataWin | 88 | 1 | 1 | Flag | Limit |
MyEdit | DataCol | 88 | 1 | 2 | 0 | Key |
MyEdit | DisplayCol | 88 | 1 | 3 | 0 | Width% |
where:
Value | Meaning |
---|---|
DataWin | Name of DataWindow object to use |
DataCol | Data column from DataWindow object |
DisplayCol | Display column from DataWindow object |
Limit | Character representation (in decimal) of Limit value |
Key | One-character accelerator key |
Width% | Width of the dropdown part of the DropDownDataWindow in % |
Flag | 32-bit flag. Low-order four hex digits are generic edit type; high-order four are styles within the type. A 1 in any bit indicates the corresponding style is checked. A 0 in any bit indicates the corresponding style is unchecked
|
Edit edit style (code 89)
Here is a sample row in the PBCatEdt table for an Edit edit
style:
Name | Edit | Type | Cntr | Seqn | Flag | Work |
---|---|---|---|---|---|---|
MyEdit | Limit | 89 | 1 | 1 | Flag | Key |
MyEdit | Format | 89 | 1 | 2 | 0 | Focus |
MyEdit | Display1 | 89 | 1 | 3 | 0 | |
MyEdit | Data1 | 89 | 1 | 4 | 0 | |
MyEdit | Display2 | 89 | 1 | 5 | 0 | |
MyEdit | Data2 | 89 | 1 | 6 | 0 |
About the example This example shows an Edit edit style using a code table of
display and data values. There is a pair of rows in PBCatEdt for
each entry in the code table only if
bit 23
of Flag
is 1.
For information about code tables in edit
styles, see Chapter 20, “Displaying and Validating
Data “.
where:
Value | Meaning |
---|---|
Limit | Character representation (in decimal) of Limit value |
Key | One-character accelerator key |
Format | Display format mask |
Focus | Character “1” if Show Focus Rectangle is checked. NULL otherwise |
Flag | 32-bit flag. Low-order four hex digits are generic edit type; high-order four are styles within the type. A 1 in any bit indicates the corresponding style is checked. A 0 in any bit indicates the corresponding style is unchecked
|
Edit Mask edit style (code 90)
Here is a sample row in the PBCatEdt table for an Edit Mask
edit style:
Name | Edit | Type | Cntr | Seqn | Flag | Work |
---|---|---|---|---|---|---|
MyEdit | Format | 90 | 1 | 1 | Flag | DtFcKy |
MyEdit | Range | 90 | 1 | 2 | 0 | SpinInc |
MyEdit | Display1 | 90 | 1 | 3 | 0 | |
MyEdit | Data1 | 90 | 1 | 4 | 0 | |
MyEdit | Display2 | 90 | 1 | 5 | 0 | |
MyEdit | Data2 | 90 | 1 | 6 | 0 |
About the example This example shows an Edit Mask edit style using a code table
of display and data values as part of a spin control. Rows 2 and
beyond exist in PBCatEdt only if the edit mask is defined as a spin
control (bit 29 of Flag
is 1). Rows 3 and beyond
exist only if the optional code table is populated.
For information about using an edit mask as
a spin control, see Chapter 20, “Displaying and Validating
Data “.
where:
Value | Meaning |
---|---|
Format | Display format mask |
DtFcKy | Concatenated string with 1-character data-type code, 1-character focus-rectangle code (0 or 1), and 1-character accelerator keyData type codes:Format String = “0”Format Number = “1”Format Date = “2”Format Time = “3”Format DataTime= “4”Examples:
|
Range | Character representation (in decimal) of spin control range. The min value and max value are tab-delimitedExample:
|
SpinInc | Character representation (in decimal) of spin increment |
Display1 | Display value for first entry in code table |
Data1 | Data value for first entry in code table |
Display2 | Display value for second entry in code table |
Data2 | Data value for second entry in code table
About the display and data values Display and data values are repeated in pairs for each entry |
Flag | 32-bit flag. Low-order four hex digits are generic edit type; high-order four are styles within the type. A 1 in any bit indicates the corresponding style is checked. A 0 in any bit indicates the corresponding style is unchecked
|