Selector.SetStyle()

Type: INSTANCE FUNCTION

Purpose: Format the style of a selector.

This function allows the user to set certain selector items to be asterisked or grayed out. The following table shows the use of bits to format positions within the selector. For selectors with more than four positions, a two- or three- digit hexadecimal number (Bits) will be required.

BINARY BITS

RESULT

0000 0x0 All positions enabled
0001 0x1

Position 1 disabled

0010 0x2

Position 2 disabled

0011 0x3 Positions 1 and 2 disabled
0100 0x4

Position 3 disabled

0101 0x5 Positions 1 and 3 disabled
0110 0x6

Positions 2 and 3 disabled

0111 0x7

Positions 1, 2, and 3 disabled

1000 0x8

Position 4 disabled

1001 0x9

Positions 1 and 4 disabled

1010 0xA

Positions 2 and 4 disabled

1011 0xB

Positions 1, 2, and 4 disabled

1100 0xC

Positions 3 and 4 disabled

1101 0xD

Positions 1, 3, and 4 disabled

1110 0xE

Positions 2, 3, and 4 disabled

1111 0xF

Positions 1, 2, 3, and 4 disabled

Usage: Selector.SetStyle(Pattern, Style)

       
  Pattern BITS

Pattern of the selector to be used.

  Style INDEX

Style of the disabled position

0 = Normal, Not disabled

1 = Asterisk , Asterisk next to name

2 = Disabled, Grayed out, cannot be selected.

Or use the following constants:

SELECTOR_NORMAL

SELECTOR_ASTERISK

SELECTOR_DISABLED

Related Topics Link IconRelated Topics