next up previous contents
Next: Use of the Change function Up: dotdot files Previous: Window

The Init, Change, ShowPage and PageEnd functions

 You have the possibility to get some commands executed each time something changes on the menupage (a checkbutton is pressed or released, a letter is inserted or deleted in a TextBox etc.) This can be used to force some restrictions on the element, or to disable/enable them due to the event. This is done with the function Change

You also have the posibility to get some code evaluated once for each page. This can be usefull to set values, when the user starts the moduel for the first time. This is done with the function Init

Each time a page is entered, some code may be evaluated. This can be very usefull if you want some information mirrored to a page from an other place in The Dotfile Generator . This is done with the ShowPage function.

Finally you have the possibility to get some commands executed when the pages are left or generated. This can be very useful to check eg. that the text in an entry matches a speciel pattern, two checkboxes aren't checked at the same time etc. This is done with the PageEnd function.

All four functions are called on the menupage just like CheckBox, Entry, Save etc. They take one argument which is a script to be evaluated on their specific times.

The functions may be called several times, in which case they just append the scripts to each other.





Jesper Kjær Pedersen <blackie@imada.ou.dk>
Wed Oct 2 13:29:53 MET DST 1996