
Next: Part 5
Up: Exercise
Previous: Part 3
Now you've already learned enough to generated files, with the only
restriction, that the user makes no error when he selects information on
the pages. I.e. he has to fill out both the regexp and the mode
field, or none. Another thing you still have to learn is how to disable
some widgets, when another widget is in a given state.
To see how these things work, please implement the following:
- When the CheckBox is selected the entry has to be disabled (Hint:
see Enable/Disable).
The entry may
only be enabled/disabled when the CheckBox changes state. This is the
most efficient way, when eg. a whole ExtEntry has to be
enabled/disabled.
- When the page called Testpage is left, you must test
that neither or both of name and mode is given.
- Add a CheckBox to the FillOutElm, which contains one already, and
test that these two checkboxes don't have the same value, when the
element is selected (ie. not both set or unset).
Jesper Kjær Pedersen <blackie@imada.ou.dk>
Wed Oct 2 13:29:53 MET DST 1996