[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ] |  |  |  |  | [Top] | [Contents] | [Index] | [ ? ]

#### 4.19.9.2 Passing Settings to a Widget

If you were to create a horizontal layout widget using code, it would look something like this:

    hl = Horizontal({padding: 5});

The settings are passed through the associative array (indicated by the {}'s). When using XML, something similar happens, it's just defined a little differently.

    <layout type="Horizontal">
    	<padding>5</padding>
    </layout>

Each child node of the layout node looks just like an associative array entry after being parsed. So any items that you would have put in the array object can just be broken out into child nodes, as the example above shows.

[ < ] | [ > ] |  | [ << ] | [ Up ] | [ >> ]

This document was generated using texi2html 1.76.