1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
|
<?xml version="1.0"?>
<!DOCTYPE gsmarkup>
<gsmarkup>
<objects>
<window title="hbox demo">
<vbox>
<!-- Force it to expand so that you can change the window size
and see the effect. -->
<hbox halign="expand">
<colorWell width="50" height="50" color="000000" halign="left" />
<colorWell width="50" height="50" color="FFFFFF" halign="left" />
<hspace />
<colorWell width="50" height="50" color="7777FF" halign="left" />
<colorWell width="50" height="50" color="red" halign="left" />
</hbox>
<hbox halign="expand">
<colorWell width="50" height="50" color="000000" halign="center" />
<colorWell width="50" height="50" color="FFFFFF" halign="center" />
<hspace />
<colorWell width="50" height="50" color="7777FF" halign="center" />
<colorWell width="50" height="50" color="red" halign="center" />
</hbox>
<hbox halign="expand">
<colorWell width="50" height="50" color="000000" halign="right" />
<colorWell width="50" height="50" color="FFFFFF" halign="right" />
<hspace />
<colorWell width="50" height="50" color="7777FF" halign="right" />
<colorWell width="50" height="50" color="red" halign="right" />
</hbox>
<hbox halign="expand">
<colorWell width="50" height="50" color="000000" halign="expand" />
<colorWell width="50" height="50" color="FFFFFF" halign="expand" />
<hspace />
<colorWell width="50" height="50" color="7777FF" halign="expand" />
<colorWell width="50" height="50" color="red" halign="expand" />
</hbox>
</vbox>
</window>
</objects>
</gsmarkup>
|