XML Tutorials Combobox Align Disable Visible transparent
Version 1.6

This is the archives. For the latest Bambookit GUI 2.0, XML GUI Demos & Tutorials visit: www.bambookit.com/_demo.html

Combo's Property: setEnabled, setOpaque, setVisible, setAlign

Opaque is used to set the combo's transparent, if opaque is set to 'false', then the elements behind the combo are visible (refer to the applet). You can use this feature set the transparency of your comboboxes if you want the images on your background to be seen through this button. setVisible is used to show or hide a combo. setEnabled set to 'false' will disable the combo. It can be set to False or True. Default is True. You may align your text as you may see fit in the combo's labels: left aligned, centered and right aligned. Refer to Reference for complete list of Properties.

See XML Source

HTML Source:
<html>
<body>
<applet archive="bamboo_1_5.jar" code="Loader.class" width=110 height=300>
<param name="loadgui" value="tutorials_combo_shape.xml">
</applet>
</body>
</html>

combo_shape.XML Source:

<Widget setSize="110,230" setBackground="d8d0bb">
<Combobox setShape="10,10,90,25" setLabel="align right" setAlign="right" setBackground="f8f4db">
<Listbox setBackgroundHighlight="d8d0bb" setForegroundHighlight="666666" setAlign="right">
<Item setLabel="test1"/>
<Item setLabel="test2"/>
<Item setLabel="test3"/>
<Item setLabel="test4"/>
<Item setLabel="test5"/>
<Item setLabel="test6"/>
<Item setLabel="test7"/>
</Listbox>
</Combobox >
<Combobox setShape="10,40,90,50" setLabel="disabled" setEnabled="false" setBackground="f8f4db>
<Listbox setBackgroundHighlight="d8d0bb" setForegroundHighlight="666666" >
<Item setLabel="test1"/>
<Item setLabel="test2"/>
<Item setLabel="test3"/>
<Item setLabel="test4"/>
<Item setLabel="test5"/>
<Item setLabel="test6"/>
<Item setLabel="test7"/>
</Listbox>
</Combobox >
<Combobox setShape="10,90,90,75" setLabel="opaque false" setOpaque="false" setForegroundHighlight="888888" setBackground="f8f4db">
<Listbox setBackgroundHighlight="d8d0bb" setForegroundHighlight="666666" >
<Item setLabel="test1"/>
<Item setLabel="test2"/>
<Item setLabel="test3"/>
<Item setLabel="test4"/>
<Item setLabel="test5"/>
<Item setLabel="test6"/>
<Item setLabel="test7"/>
</Listbox>
</Combobox>
</Widget>

[Home][Tutorial] [Demo]

Combo
Shape Borders Fonts & Colors Highlights Images Actions Other