控件屬性
如需控件屬性的相關信息,請參閱您在 Controls 中建立的特定控件連結,以及下列清單中特定控件屬性的連結。
下列方法用於指定 控制項的屬性:
- 使用 ControlCondition 資料表,根據屬性或條件語句的值停用、啟用、隱藏或顯示控件。 您也可以使用此資料表來覆寫 Dialog 資料表中指定的預設控制件,。
- 將控制項訂閱至 EventMapping 資料表中的 ControlEvent。 在 [屬性] 數據行中輸入屬性的標識符,並在此數據表的 [事件] 資料行中輸入 ControlEvent 的識別碼。
- 在 Control 資料表的 [屬性] 資料行中,設定控件的控件屬性位旗標。 這會在建立控件時設定屬性。
無法為每個控制項設定某些屬性,或由上述所有方法指定。 如需詳細資訊,請參閱特定的控件和屬性主題。
某些控制項屬性的初始值可以使用 Control 資料表中的位來設定,。
屬性 | 十進位 | 十六進位 | 不斷 |
---|---|---|---|
BiDi | 224 | 0x000000E0 | msidbControlAttributesBiDi |
已啟用 | 2 | 0x00000002 | msidbControlAttributesEnabled |
間接 | 8 | 0x00000008 | msidbControlAttributesIndirect |
整數控件 | 16 | 0x00000010 | msidbControlAttributesInteger |
LeftScroll | 128 | 0x00000080 | msidbControlAttributesLeftScroll |
RightAligned | 64 | 0x00000040 | msidbControlAttributesRightAligned |
RTLRO | 32 | 0x00000020 | msidbControlAttributesRTLRO |
下沉 | 4 | 0x00000004 | msidbControlAttributesSunken |
可見 | 1 | 0x00000001 | msidbControlAttributesVisible |
Text 控制件的這些屬性會設定為位。
屬性 | 十進位 | 十六進位 | 不斷 |
---|---|---|---|
FormatSize | 524288 | 0x00080000 | msidbControlAttributesFormatSize |
NoPrefix | 131072 | 0x00020000 | msidbControlAttributesNoPrefix |
NoWrap | 262144 | 0x00040000 | msidbControlAttributesNoWrap |
密碼 | 2097152 | 0x00200000 | msidbControlAttributesPasswordInput |
透明 | 65536 | 0x00010000 | msidbControlAttributesTransparent |
UsersLanguage | 1048576 | 0x00100000 | msidbControlAttributesUsersLanguage |
ProgressBar 控件的這個屬性是以位設定。
屬性 | 十進位 | 十六進位 | 不斷 |
---|---|---|---|
Progress95 | 65536 | 0x00010000 | msidbControlAttributesProgress95 |
Volume 和 Directory SelectCombo 控件的這些屬性會以位設定。
屬性 | 十進位 | 十六進位 | 不斷 |
---|---|---|---|
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 控制件的這些屬性會以位設定。
屬性 | 十進位 | 十六進位 | 不斷 |
---|---|---|---|
ComboList 控件 | 131072 | 0x00020000 | msidbControlAttributesComboList |
排序控件 | 65536 | 0x00010000 | msidbControlAttributesSorted |
編輯控制件的這個屬性會以位設定。
屬性 | 十進位 | 十六進位 | 不斷 |
---|---|---|---|
MultiLine | 65536 | 0x00010000 | msidbControlAttributesMultiline |
PictureButton 控件的這些屬性會設定為位。
屬性 | 十進位 | 十六進位 | 不斷 |
---|---|---|---|
位圖 | 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 控件的這個屬性會以位設定。
屬性 | 十進位 | 十六進位 | 不斷 |
---|---|---|---|
HasBorder | 16777216 | 0x01000000 | msidbControlAttributesHasBorder |
PushButton 控件的這個屬性會以位設定。
屬性 | 十進位 | 十六進位 | 不斷 |
---|---|---|---|
ElevationShield | 8388608 | 0x00800000 | msidbControlAttributesElevationShield |
VolumeCostList 控件的這個屬性是以位設定。
屬性 | 十進位 | 十六進位 | 不斷 |
---|---|---|---|
ControlShowRollbackCost | 4194304 | 0x00400000 | msidbControlShowRollbackCost |
下列控件屬性未設定位。 這些屬性會撰寫到使用者介面數據表中,或使用 Control Events來設定。
請參閱 新增控制項與文字。