- 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_Ex4.ADsrc and the modified document will be saved with the name Document_Ex5.ADsrc.
Remember: the Document_Ex4.ADsrc is the source file and the icon is represented by a "W". The Document_Ex4.ADcomp is the compiled file and the icon is represented by a "P". These documents are on the CD in the folder Sample/Try This/FolderEx4- Choose Static Text from the menu Create Element of ADWorks.(See Result)
Active Lists are elements whose functionality lies between Active Elements and Static Text. Active Lists are used to enumerate text, pictures, sounds, etc. Active List Evaluation Tables are very simple. Items are enumerated in the column Possibilities. All other columns are not activated.- Call the Evaluation Dialog of the created Active List (Click on his button Eval.) and enumerate the rivers. The Evaluation table looks like this and the created Active List looks like this after leaving the Evaluation Dialog with OK.
In the Static Text we promised to give the first characters of the towns. We will do this in a tricky way:- Use Create Elements / Choose Box.
1) Use the File / Transfer command of the Evaluation Dialog (See illustration).
2) Click OK on that What-is-to-transfer-dialog (See Illustration).
3) Select and copy the countries in the appearing Editor (See illustration).
4) Leave RTF-Editor with OK, leave Evaluation Dialog with OK.
5) Call the Definition Dialog of the Active List (Click on his button Def.).
6) Choose the Edit List tab und click his TURBO-button (See illustration)
Note: The TURBO-button is only available if the insertion point is blinking in the list.
7) Paste the countries (copied at step 3) into the open Editor (See Result).
8) Define the beginning characters you want to show (See my proposition)
9) Leave the Editor with OK and arrive on the Edit List Tab
10) Use the D column of the Edit List Tab to define the desired order (See illustration)
11) Leave the Definition Dialog with OK.We are now ready to create the Choose Box for the oceans.
Let’s say you want to give to the Choose Box the same color as the above Choose Box in the document.- Use the Edit List Tab of the Definition Dialog (Click the button Def.) of the of the Choose Box to define the list like this.
1) Select the above Choose Box FIRST.
2) Select as well the Choose Box(s) that must have the color of the FIRST selected element.
3) Use Edit / Global Settings Transferring / Adapt colors to first selected element.
See general Illustration for that "Same Color Operation". See Result of the "Same Color Operation".
We are now ready to create the Choose Box for the question "Which of them is longest"- Use Create Elements / Choose Box.
We reach almost the end :)- Choose Validater from the menu Create Element of ADWorks and link the Active List to that new Validater (See Illustration).
Before we go to test the group, we remember that the Static Text has Referenced Text (RIVERLIST, WRITELIST etc.). We are going now to associate the Referenced Text to elements. (Note: Referenced Text were treated at exemple 4. Look at Exemple 4.)- Call the Evaluation Dialog (Click Def. button) of the Static Text and fill the table that associates Referenced Text with elements like this.
The created group can be tested. (Look and refer to Exercise 1). See the groupe under ADPlayer.Save the document with the command File/ Save or File/Save as. This will save a source file.
See some most frequent error that may happen.
See possible alignment error.
Try different answers, some with typing errors and observe the default messages. Use the up and down arrows under the Validater to look up the trials you made. (With compiled documents the trials are stored in the activity file, *ADact). About messages, About activity file.
Special trial: Do the following steps if you want to modify the looking: 1) click that bar, play with that, then click this and finally click that AA OK.
On the CD you find this example 5 (without special trial) in the folder
Sample/Try This/FolderEx5/
The files there are
- Document_Ex5.ADsrc (the source file; a "W" in the icon)Back to try this
- Document_Ex5.ADcomp (the compiled file; a "P" in the icon)