Example 9, Fill-in-the-Blank Text (Gaps) and Classify portions of text with colors


As example of Fill-in-the-Blank Text with Text Coloring - let’s say that we would like to have this - (Look at situation at at beginning , situation after some steps) - on the screen when using ADPlayer. A slight modification (see below on this page) will give this looking to that same question.

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_Ex8.ADsrc and the modified document will be saved with the name Document_Ex9.ADsrc. It can be found on the CD in the folder Sample/Try This/FolderEx9/

- Use Static Text from the menu Create Elements of ADWorks and use the Def. button to get this.
- Use Fill-in-the-Blank Text (Gaps) from the menu Create Elements of ADWorks and use the Def. button to get this. Paragraphs are intended with tabulators, portions of Referenced Text are added and set to old. Note: Find the file "RFF story" in the folder Sample/Try This/FolderEx9/  to copy and paste the story.
- Use Choose Box from the menu Create Elements.
- Optional step: Do the "Same Color Operation" for the created Choose Box. See Result.
- Use the Def. button of the Choose Box to define his list and the colors linked to each items of the list on the List tab. See illustration.
- Use now 6 times Duplication with permanent Link from menu Create Elements. See Result.
- Use the Eval. button of each Choose Box and fill the Evaluation Table like this:
   Choose Box 1: Exag. It's for portion 1.
   Choose Box 2: Absurd. It's for portion 2.
   Choose Box 3: Reality. It's for portion 3.
   Choose Box 4: Reality. It's for portion 4.
   Choose Box 5: Reality. It's for portion 5.
   Choose Box 6: Exag, Reality. It's for portion 6, two entries:)
   Choose Box 7: Absurd. It's for portion7)

- Create a Validater with the menu Create Elements and link the seven Choose Boxes to that Validater. (Select the eight 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 Choose Box.

Let's do the references now
- Click Eval. button of the Static Text and associate like this.
- Click Eval. button of the Fill-in-the-Blank Text and associate like this and we choose the type Choose the setting Color, Fixed Position and Size. (This is called Type 4 at Ex7, see it) Color will color the Referenced Text with the color linked to the item in the list. Fixed Position will place the Choose Box automatically to the right of the text, at the heigth of the referenced text. With Fixed Size  the buttons become a small size with fixed size. See illustration.
- As a last step we define for each Choose Box the type Color only on the Setting tab of the Evaluation Dialog. This operation defines the behavior of the seven Choose Boxes. As they are quite small we choose Color only. If they were larger we could use Color and Text.

We are ready for a temporary jump to ADPlayer to test the new group. It looks like this at the beginning and like this after some steps.

On the CD you find this example in the folder Sample/Try This/FolderEx9/
The files there are

- Document_Ex9.ADsrc  (the source file; a "W" in the icon)
- Document_Ex9.ADcomp  (the compiled file; a "P" in the icon)

These steps present also a version

A slight modification. The following result ( illustration) is obtained by some simpel modification:
1) Fixed Position and Size replaced by Fixed Position, customizable Size
2) Select the 7 Choose Boxes, se Edit/Alignment and Size/Resize Selected Elements to define a suitable size (14 * 68).
3) Set each Choose Box to type Color and Text.
See
- Document_Ex9 bis.ADsrc  (the source file; a "W" in the icon)
- Document_Ex9 bis.ADcomp  (the compiled file; a "P" in the icon)
in Sample/Try This/FolderEx9/ on the CD

Back to try this