Kontrollattribut
Information om kontrollattribut finns i länken till den specifika kontroll som du behöver skapa i Controls samt länkarna till vissa kontrollattribut i följande listor.
Följande metoder används för att ange attributen för en kontroll:
- Använd tabellen ControlCondition för att inaktivera, aktivera, dölja eller visa en kontroll enligt värdet för en egenskap eller villkorssats. Du kan också använda den här tabellen för att åsidosätta standardkontrollen som anges i tabellen Dialog.
- Prenumerera på kontrollen till en ControlEvent i tabellen EventMapping. Ange attributets identifierare i kolumnen Attribut och ControlEvents identifierare i kolumnen Händelse i den här tabellen.
- Ange kontrollattributets bitflaggor för kontrollen i kolumnen Attribut i tabellen Control. Detta anger attributen när kontrollen skapas.
Vissa attribut kan inte anges för varje kontroll eller anges av alla ovanstående metoder. Mer information finns i avsnittet om kontroll och attribut.
De inledande värdena för vissa kontrollattribut kan anges med bitar i tabellen Control.
Attribut | Decimal | Hexadecimal | Konstant |
---|---|---|---|
BiDi | 224 | 0x000000E0 | msidbControlAttributesBiDi |
aktiverat | 2 | 0x00000002 | msidbControlAttributesEnabled |
Indirekt | 8 | 0x00000008 | msidbControlAttributesIndirect |
Heltalskontroll | 16 | 0x00000010 | msidbControlAttributesInteger |
LeftScroll | 128 | 0x00000080 | msidbControlAttributesLeftScroll |
RightAligned | 64 | 0x00000040 | msidbControlAttributesRightAligned |
RTLRO- | 32 | 0x00000020 | msidbControlAttributesRTLRO |
nedsänkt | 4 | 0x00000004 | msidbControlAttributesSunken |
synlig | 1 | 0x00000001 | msidbControlAttributesVisible |
Dessa attribut för textkontroller anges med bitar.
Attribut | Decimal | Hexadecimal | Konstant |
---|---|---|---|
FormatSize | 524288 | 0x00080000 | msidbControlAttributesFormatSize |
NoPrefix | 131072 | 0x00020000 | msidbControlAttributesNoPrefix |
NoWrap | 262144 | 0x00040000 | msidbControlAttributesNoWrap |
Lösenord | 2097152 | 0x00200000 | msidbControlAttributesPasswordInput |
Transparent | 65536 | 0x00010000 | msidbControlAttributesTransparent |
UsersLanguage | 1048576 | 0x00100000 | msidbControlAttributesUsersLanguage |
Det här attributet för ProgressBar-kontrollen anges med lite.
Attribut | Decimal | Hexadecimal | Konstant |
---|---|---|---|
Progress95 | 65536 | 0x00010000 | msidbControlAttributesProgress95 |
Dessa attribut för kontrollerna Volume och Directory SelectCombo anges med bitar.
Attribut | Decimal | Hexadecimal | Konstant |
---|---|---|---|
CDROMVolume | 524288 | 0x00080000 | msidbControlAttributesCDROMVolume |
FixedVolume | 131072 | 0x00020000 | msidbControlAttributesFixedVolume |
FloppyVolume | 2097152 | 0x00200000 | msidbControlAttributesFloppyVolume |
RAMDiskVolume | 1048576 | 0x00100000 | msidbControlAttributesRAMDiskVolume |
RemoteVolume | 262144 | 0x00040000 | msidbControlAttributesRemoteVolume |
RemovableVolume | 65536 | 0x00010000 | msidbControlAttributesRemovableVolume |
Dessa attribut för ListBox- och ComboBox-kontroller anges med bitar.
Attribut | Decimal | Hexadecimal | Konstant |
---|---|---|---|
ComboList Control | 131072 | 0x00020000 | msidbControlAttributesComboList |
sorterad kontroll | 65536 | 0x00010000 | msidbControlAttributesSorted |
Det här attributet för redigeringskontrollen anges med lite.
Attribut | Decimal | Hexadecimal | Konstant |
---|---|---|---|
MultiLine- | 65536 | 0x00010000 | msidbControlAttributesMultiline |
Dessa attribut för PictureButton-kontroller anges med bitar.
Attribut | Decimal | Hexadecimal | Konstant |
---|---|---|---|
Bitmapp | 262144 | 0x00040000 | msidbControlAttributesBitmap |
FixedSize | 1048576 | 0x00100000 | msidbControlAttributesFixedSize |
ikon | 524288 | 0x00080000 | msidbControlAttributesIcon |
IconSize16 | 2097152 | 0x00200000 | msidbControlAttributesIconSize16 |
IconSize32 | 4194304 | 0x00400000 | msidbControlAttributesIconSize32 |
IconSize48 | 6291456 | 0x00600000 | msidbControlAttributesIconSize48 |
PushLike-kontroll | 131072 | 0x00020000 | msidbControlAttributesPushLike |
Det här attributet för RadioButton-kontrollen anges med lite.
Attribut | Decimal | Hexadecimal | Konstant |
---|---|---|---|
HasBorder | 16777216 | 0x01000000 | msidbControlAttributesHasBorder |
Det här attributet för PushButton-kontrollen anges med lite.
Attribut | Decimal | Hexadecimal | Konstant |
---|---|---|---|
ElevationShield | 8388608 | 0x00800000 | msidbControlAttributesElevationShield |
Det här attributet för VolumeCostList-kontrollen anges med lite.
Attribut | Decimal | Hexadecimal | Konstant |
---|---|---|---|
ControlShowRollbackCost | 4194304 | 0x00400000 | msidbControlShowRollbackCost |
Följande kontrollattribut anges inte med bitar. Dessa attribut skapas i användargränssnittstabellerna eller anges med hjälp av Kontrollhändelser.
Se Lägga till kontroller och text.