Edit Mask edit style (code 90)

Table A-18 shows a sample row in the PBCatEdt table for an EditMask edit style. Table A-19 shows the meaning of the values in Table A-18.

NoteAbout 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 22, “Displaying and Validating Data.”

Table A-18: Sample row in PBCatEdt for an EditMask 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

Table A-19: Values used in EditMask edit style sample

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

Data type codes:

Format String = "0"

Format Number = "1"

Format Date = "2"

Format Time = "3"

Format DataTime= "4"

Examples:

  • "10x" means format is Number type, focus rectangle option is unchecked, accelerator key is "x"

  • "31z" means format is Time type, focus rectangle option is checked, accelerator key is "z"

Range

Character representation (in decimal) of spin control range. The min value and max value are tab-delimited.

Example:

  • "1[tab]13" means min = 1, max = 13

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.

Display and data values are repeated in pairs for each entry in the code table.

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: Required

  • Bit 30: Autoskip

  • Bit 29: Spin control

  • Bit 28: Read only (code table option)

  • Bit 27: Use code table

  • Bit 26: Not used (set to 0)

  • Bit 25: Not used (set to 0)

  • Bit 24: Not used (set to 0)

  • Bit 23 – 16 (2 hex digits): Not used (set to 0)

  • Bit 15 – 8 (2 hex digits): Always 0 for Edit Mask edit style

  • Bit 7: Always 0 for Edit Mask edit style

  • Bit 6: Always 0 for Edit Mask edit style

  • Bit 5: Always 1 for Edit Mask edit style

  • Bit 4: Always 0 for Edit Mask edit style

  • Bits 3 – 0 (1 hex digit): Always 0 for Edit Mask edit style