Control Attributes

For information on control attributes, see the link to the particular control that you need to create in Controls as well as the links to particular control attributes in the following lists.

The following methods are used for specifying the attributes of a control:

  • Use the ControlCondition table to disable, enable, hide, or show a control according to the value of a property or conditional statement. You can also use this table to override the default control specified in the Dialog table.
  • Subscribe the control to a ControlEvent in the EventMapping table. Enter the attribute's identifier in the Attribute column and the ControlEvent's identifier in the Event column of this table.
  • Set the control attribute bit flags for the control in the Attribute column of the Control table. This sets the attributes upon the creation of the control.

Some attributes cannot be set for every control or be specified by all of the above methods. See the particular control and attribute topics for details.

The initial values of some control attributes can be set with bits in the Control table.

Attribute Decimal Hexadecimal Constant
BiDi 224 0x000000E0 msidbControlAttributesBiDi
Enabled 2 0x00000002 msidbControlAttributesEnabled
Indirect 8 0x00000008 msidbControlAttributesIndirect
Integer Control 16 0x00000010 msidbControlAttributesInteger
LeftScroll 128 0x00000080 msidbControlAttributesLeftScroll
RightAligned 64 0x00000040 msidbControlAttributesRightAligned
RTLRO 32 0x00000020 msidbControlAttributesRTLRO
Sunken 4 0x00000004 msidbControlAttributesSunken
Visible 1 0x00000001 msidbControlAttributesVisible

 

These attributes of Text controls are set with bits.

Attribute Decimal Hexadecimal Constant
FormatSize 524288 0x00080000 msidbControlAttributesFormatSize
NoPrefix 131072 0x00020000 msidbControlAttributesNoPrefix
NoWrap 262144 0x00040000 msidbControlAttributesNoWrap
Password 2097152 0x00200000 msidbControlAttributesPasswordInput
Transparent 65536 0x00010000 msidbControlAttributesTransparent
UsersLanguage 1048576 0x00100000 msidbControlAttributesUsersLanguage

 

This attribute of the ProgressBar control is set with a bit.

Attribute Decimal Hexadecimal Constant
Progress95 65536 0x00010000 msidbControlAttributesProgress95

 

These attributes of Volume and Directory SelectCombo controls are set with bits.

Attribute Decimal Hexadecimal Constant
CDROMVolume 524288 0x00080000 msidbControlAttributesCDROMVolume
FixedVolume 131072 0x00020000 msidbControlAttributesFixedVolume
FloppyVolume 2097152 0x00200000 msidbControlAttributesFloppyVolume
RAMDiskVolume 1048576 0x00100000 msidbControlAttributesRAMDiskVolume
RemoteVolume 262144 0x00040000 msidbControlAttributesRemoteVolume
RemovableVolume 65536 0x00010000 msidbControlAttributesRemovableVolume

 

These attributes of ListBox and ComboBox controls are set with bits.

Attribute Decimal Hexadecimal Constant
ComboList Control 131072 0x00020000 msidbControlAttributesComboList
Sorted Control 65536 0x00010000 msidbControlAttributesSorted

 

This attribute of the Edit control is set with a bit.

Attribute Decimal Hexadecimal Constant
MultiLine 65536 0x00010000 msidbControlAttributesMultiline

 

These attributes of PictureButton controls are set with bits.

Attribute Decimal Hexadecimal Constant
Bitmap 262144 0x00040000 msidbControlAttributesBitmap
FixedSize 1048576 0x00100000 msidbControlAttributesFixedSize
Icon 524288 0x00080000 msidbControlAttributesIcon
IconSize16 2097152 0x00200000 msidbControlAttributesIconSize16
IconSize32 4194304 0x00400000 msidbControlAttributesIconSize32
IconSize48 6291456 0x00600000 msidbControlAttributesIconSize48
PushLike Control 131072 0x00020000 msidbControlAttributesPushLike

 

This attribute of RadioButton control is set with a bit.

Attribute Decimal Hexadecimal Constant
HasBorder 16777216 0x01000000 msidbControlAttributesHasBorder

 

This attribute of PushButton control is set with a bit.

Attribute Decimal Hexadecimal Constant
ElevationShield 8388608 0x00800000 msidbControlAttributesElevationShield

 

This attribute of VolumeCostList control is set with a bit.

Attribute Decimal Hexadecimal Constant
ControlShowRollbackCost 4194304 0x00400000 msidbControlShowRollbackCost

 

The following control attributes are not set with bits. These attributes are authored into the user interface tables or are set using Control Events.

BillboardName

 

IndirectPropertyName

 

Position

 

Progress Control

 

PropertyName

 

PropertyValue

 

Text Control

 

TimeRemaining

See Adding Controls and Text.