Edit edit style (code 89)

Table A-16 shows a sample row in the PBCatEdt table for an Edit edit style. Table A-17 shows the meaning of the values in Table A-16.

NoteAbout 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.

Table A-16: Sample row in PBCatEdt 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

Table A-17: Values used in Edit edit style sample

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.

  • Bit 31: Uppercase

  • Bit 30: Lowercase (if Bits 31 and 30 are both 0, then case is Any)

  • Bit 29: Auto selection

  • Bit 28: Password

  • Bit 27: Auto HScroll

  • Bit 26: Auto VScroll

  • Bit 25: HScroll bar

  • Bit 24: VScroll bar

  • Bit 23: Use code table

  • Bit 22: Validate using code table

  • Bit 21: Display only

  • Bit 20: Empty string is NULL

  • Bit 19: Required field

  • Bit 18: Not used (set to 0)

  • Bit 17: Not used (set to 0)

  • Bit 16: Not used (set to 0)

  • Bits 15 – 4 (3 hex digits): Always 0 for Edit edit style

  • Bit 3: Always 0 for Edit edit style

  • Bit 2: Always 0 for Edit edit style

  • Bit 1: Always 0 for Edit edit style

  • Bit 0: Always 1 for Edit edit style