Skip to content
This repository was archived by the owner on Feb 14, 2025. It is now read-only.

Commit cbd0472

Browse files
committed
Clarify name/variable interop.
1 parent ed8b727 commit cbd0472

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

src/xsd4/thmutil.xsd

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@
626626
<xs:annotation>
627627
<xs:documentation>
628628
Initial text for the control.
629-
Mutually exclusive with the StringId attribute.
629+
Mutually exclusive with the StringId attribute and child Text elements.
630630
</xs:documentation>
631631
</xs:annotation>
632632
<xs:attributeGroup ref="CommonControlAttributes" />
@@ -867,7 +867,7 @@
867867
</xs:documentation>
868868
</xs:annotation>
869869
</xs:attribute>
870-
</xs:extension>
870+
</xs:extension>
871871
</xs:simpleContent>
872872
</xs:complexType>
873873
</xs:element>
@@ -900,7 +900,7 @@
900900
<xs:annotation>
901901
<xs:documentation>
902902
Defines a progress bar image.
903-
The image must be 4 pixels wide: left pixel is the left side of progress bar, left middle pixel is progress used, right middle pixel is progress unused, right pixel is right side of progress bar.
903+
The image must be 4 pixels wide: left pixel is the left side of progress bar, left middle pixel is progress used, right middle pixel is progress unused, right pixel is right side of progress bar.
904904
If multiple ProgressbarImages are given, each is assigned an index in document order and can be selected programmatically with ThemeSetProgressControlColor.
905905
</xs:documentation>
906906
</xs:annotation>
@@ -1068,7 +1068,7 @@
10681068
</xs:documentation>
10691069
</xs:annotation>
10701070
</xs:attribute>
1071-
</xs:extension>
1071+
</xs:extension>
10721072
</xs:simpleContent>
10731073
</xs:complexType>
10741074
</xs:element>
@@ -1207,7 +1207,24 @@
12071207
<xs:attributeGroup name="CommonControlAttributes">
12081208
<xs:attribute name="Name" type="xs:string">
12091209
<xs:annotation>
1210-
<xs:documentation>Optional name for the control.</xs:documentation>
1210+
<xs:documentation>
1211+
Optional name for the control.
1212+
1213+
If the ThmUtil variable callback system has been configured, such as by
1214+
WixStandardBootstrapperApplication, ThmUtil uses the control name to
1215+
find a matching variable name. ThmUtil retrieves the variable's value
1216+
to set the initial value of the control and sets the variable's value
1217+
when the user interacts with the control.
1218+
1219+
For example, a checkbox control is checked when the matching variable
1220+
has a nonzero value and unchecked for a value of `0`. When the user
1221+
checks a checkbox control, ThmUtil sets the variable value to a nonzero
1222+
value (currently `1`) and to `0` if the checkbox is unchecked.
1223+
1224+
An edit box control gets its initial value from a matching variable
1225+
value. The control value is saved to the variable when navigating away
1226+
from the page or when choosing a folder via an associated Browse button.
1227+
</xs:documentation>
12111228
</xs:annotation>
12121229
</xs:attribute>
12131230
<xs:attribute name="EnableCondition" type="xs:string">

0 commit comments

Comments
 (0)