To obtain the result we do the following steps with ADWorks.
- Use the command New Source Document or open the document where you want to add the steps of the current example. This description will add the new elements to Document_Ex6.ADsrc and the modified document will be saved with the name Document_Ex7.ADsrc. It can be found on the CD in the folder Sample/Try This/FolderEx7/
- Use Static Text from the menu Create Elements of ADWorks
and fill it like this.
- Use Fill-in-the-Blank Text (Gaps) from the menu Create
Elements of ADWorks. This operation creates an element identical with
Static
Text at first sight. Fill it like this.
- After OK we have this result.
- If you have a new document, then create now one Write Text Boxes,
select it and duplicate it twice with permanent link. If you continue a
document, then select some above Write Text Boxe and duplicate it three
times with permanent link. The Duplication command is in menu Create
Elements. Duplication creates a new element with the same definitions.
Therefore they share aspect and use less memory. (See
and refer Ex 2, about Duplication and Chain of Definition). See
Result.
- Use the Eval. button of each Write Text Box and fill the Evaluation
Table and fill the Initial Display on Setting Tab like this
(1 illustation for 6 steps). The 6 steps
done, you have this Result.
- Create a Validater with the menu Create Element and
link the three Write Text Boxes to that Validater. (Select
the four elements and click Link on the Validater). Note: if you
would like the user to submit one by one then we would create one Validater
for each Write Text Boxe.
Let's do the references now- Click Eval. button of the Static Text and associate like this.
Clicking the OK of that last Evaluation Dialog will make move the Write Boxes to there associated places and will adapt the length of the boxes to the length of the referenced text. See illustration. As you see, in some cases, the Write Boxes may overlap. They are too height. We can fit this in the following way: 1) Select the three, 2) Use Edit / Alignment and Size / Resize Selected Elements and 3) choose a suitable smaller size for the height on the appearing dialog. Sometimes you need to go back to the Evaluation Dialog to make move and calculate length again. See Illustration. "Move and calculate length ” is also done with Edit / Alignment and Size / Position all Fill-in-Blank Text.We are ready for a temporary jump to ADPlayer to test the new group. It looks like this.
On the CD you find this example in the folder Sample/Try This/FolderEx7/
The files there are
- Document_Ex7.ADsrc (the source file; a "W" in the icon)
- Document_Ex7.ADcomp (the compiled file; a "P" in the icon)
Note
Static Text and Fill-in-Blank Text are almost identically. Three differences: 1) Static Text are not numbered under ADPlayer, Fill-in-Blank Text are numbered and can be referenced, see example above. 2) The Eval. Dialog is similar for the two, but the associated Element is used for numbering in the case of Static Text. The associated Element is used for the Gaps in the other case. 3) The Type Drop down List (See illustration) if the Eval.Dialog is disabled for Static Text and it is enabled for the other. The Default value is Element in Situ when it is enabled for Fill-in-Blank Text.
The 9 Types for Fill-in-Blank Text
The 9 types of Fill-in-Blank Text form 4 groups and they are numbered like this.
The types 1a and 1b are no more recommended. They are maintained for reasons of compatibility. The Tutorial 1 shows the above example (the Fairy Tail) in two versions. The first version uses the type 1a and second uses the type 2 (exactly the above example). Refer to Tutorial 1 for more details about types 1a and 1b. Each Fill-in-Blank Text using type 1a,b can be transformed into type 2 by changing the type in the Eval.dialog. The transformation in the opposite direction is not always possible.
The type 2 is the default type. It was used in the above example. Note: the elements need not to be Text Write Box with type 2. With the above described method you can make a Gap Text with Choose Boxes (that means : Choose Boxes replace the Text Write Boxes). See illustration 1 and 2. Type 2 can be transformed to type 1a or 1b if it contains no Choose Boxes.
The type 3 a, b, c will be treated in example 8. Type can be transformed in type 2. Type 2 can be transformed in type 3 if it contains only Choose Boxes. The mentioned example illustration 1 and 2 is the transformation of example 8 (the transformed form is not saved on CD).
The type 4 a, b ,c will be treated in example 9. Transformations of that type do not make sense.