235
edits
| Line 107: | Line 107: | ||
====Call Order for Initialization Code==== | ====Call Order for Initialization Code==== | ||
* On opening the preferences dialog, the prefwindow binding gets attached to the <prefwindow> element. The toolkit base binding's constructor is executed and dispatches 'paneload' events to any static <prefpane>s. | |||
* On changing the panel selection, either by code or tree selection, a 'paneload' event is only dispatched to the new <prefpane> if it hasn't been initialized yet. | |||
* These 'paneload' events are processed in the following order: | |||
** SM's derived <prefpane> 'paneload' handler is called, evaluating the <prefpane>'s 'script' attribute. If defined, the <prefpane>'s Startup() function is called, so that <preference> elements can be created dynamically.<br><i style="color:red">Mind that <preference>s are '''not''' initialized yet!</i> | |||
** Toolkit's <prefpane> 'paneload' handler is called and initializes the <preference> elements, evaluating any 'onsyncfrompreference' handler attributes on elements tied to a <preference>. | |||
** SM's <prefwindow> 'paneload' handler is called, synchronizing <tree> and <prefpane<. | |||
** Finally, any <prefpane> 'onpaneload' handler attribute is evaluated. | |||
<div style="font-size:smaller; direction: rtl;">''Page maintained by [mailto:mnyromyr@tprac.de Karsten Düsterloh]''</div> | <div style="font-size:smaller; direction: rtl;">''Page maintained by [mailto:mnyromyr@tprac.de Karsten Düsterloh]''</div> | ||
edits