控制項屬性

如需控制項屬性的相關資訊,請參閱您在 控制項 中建立的特定控制項連結,以及下列清單中特定控制項屬性的連結。

下列方法可用來指定 控制項的屬性:

  • 使用 ControlCondition 資料表 ,根據屬性或條件陳述式的值停用、啟用、隱藏或顯示控制項。 您也可以使用此資料表來覆寫 Dialog 資料表中指定的預設控制項。
  • 將控制項訂閱 EventMapping 資料表中的 ControlEvent。 在 [屬性] 資料行中輸入屬性的識別碼,並在此資料表的 [事件] 資料行中輸入 ControlEvent 的識別碼。
  • Control 資料表的 [屬性] 資料行中設定控制項的控制項屬性位旗標。 這會在建立控制項時設定屬性。

某些屬性無法針對每個控制項設定,或由上述所有方法指定。 如需詳細資訊,請參閱特定控制項和屬性主題。

某些控制項屬性的初始值可以使用 Control 資料表中的位來設定。

屬性 Decimal 十六進位 常數
BiDi 224 0x000000E0 msidbControlAttributesBiDi
Enabled 2 0x00000002 msidbControlAttributesEnabled
間接 8 0x00000008 msidbControlAttributesIndirect
整數控制項 16 0x00000010 msidbControlAttributesInteger
LeftScroll 128 0x00000080 msidbControlAttributesLeftScroll
RightAligned 64 0x00000040 msidbControlAttributesRightAligned
RTLRO 32 0x00000020 msidbControlAttributesRTLRO
沉沒 4 0x00000004 msidbControlAttributesSunken
Visible 1 0x00000001 msidbControlAttributesVisible

 

Text 控制項的這些屬性會以位設定。

屬性 Decimal 十六進位 常數
FormatSize 524288 0x00080000 msidbControlAttributesFormatSize
NoPrefix 131072 0x00020000 msidbControlAttributesNoPrefix
NoWrap 262144 0x00040000 msidbControlAttributesNoWrap
密碼 2097152 0x00200000 msidbControlAttributesPasswordInput
透明 65536 0x00010000 msidbControlAttributesTransparent
UsersLanguage 1048576 0x00100000 msidbControlAttributesUsersLanguage

 

ProgressBar 控制項的這個屬性是以位設定。

屬性 Decimal 十六進位 常數
Progress95 65536 0x00010000 msidbControlAttributesProgress95

 

磁片區和目錄 SelectCombo 控制項的這些屬性會設定位。

屬性 Decimal 十六進位 常數
CDROMVolume 524288 0x00080000 msidbControlAttributesCDROMVolume
FixedVolume 131072 0x00020000 msidbControlAttributesFixedVolume
FloppyVolume 2097152 0x00200000 msidbControlAttributesFloppyVolume
RAMDiskVolume 1048576 0x00100000 msidbControlAttributesRAMDiskVolume
RemoteVolume 262144 0x00040000 msidbControlAttributesRemoteVolume
RemovableVolume 65536 0x00010000 msidbControlAttributesRemovableVolume

 

ListBox 和 ComboBox 控制項的這些屬性會設定位。

屬性 Decimal 十六進位 常數
ComboList 控制項 131072 0x00020000 msidbControlAttributesComboList
排序控制項 65536 0x00010000 msidbControlAttributesSorted

 

編輯控制項的這個屬性會設定為位。

屬性 Decimal 十六進位 常數
MultiLine 65536 0x00010000 msidbControlAttributesMultiline

 

PictureButton 控制項的這些屬性會設定位。

屬性 Decimal 十六進位 常數
點陣圖 262144 0x00040000 msidbControlAttributesBitmap
FixedSize 1048576 0x00100000 msidbControlAttributesFixedSize
圖示 524288 0x00080000 msidbControlAttributesIcon
IconSize16 2097152 0x00200000 msidbControlAttributesIconSize16
IconSize32 4194304 0x00400000 msidbControlAttributesIconSize32
IconSize48 6291456 0x00600000 msidbControlAttributesIconSize48
PushLike 控制項 131072 0x00020000 msidbControlAttributesPushLike

 

RadioButton 控制項的這個屬性會設定為位。

屬性 Decimal 十六進位 常數
HasBorder 16777216 0x01000000 msidbControlAttributesHasBorder

 

PushButton 控制項的這個屬性是以位設定。

屬性 Decimal 十六進位 常數
ElevationShield 8388608 0x00800000 msidbControlAttributesElevationShield

 

VolumeCostList 控制項的這個屬性是以位設定。

屬性 Decimal 十六進位 常數
ControlShowRollbackCost 4194304 0x00400000 msidbControlShowRollbackCost

 

下列控制項屬性未以位設定。 這些屬性會撰寫到使用者介面資料表中,或使用 控制項事件來設定。

BillboardName

 

IndirectPropertyName

 

位置

 

進度控制項

 

PropertyName

 

PropertyValue

 

Text Control

 

TimeRemaining

請參閱 新增控制項和文字