XML Tutorials Combo Box Image
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: setImage, setImageRollover and add Image Containers.


In the applet above we can see how setImage property is used, including ImageRollover. One of the Combo's properties is ability to add many images in the Combo creating image container. setImageContainer="int,int" sets the size of how big the image container is. Then inside of the image container you can add multiple images with the use of addImage property. Refer to Reference for complete list of Properties.


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

button_combo.XML Source:

<Widget setSize="390,150" setBackground="cdc9ee">
<Widget setShape="10,10,170,25" setLabel="Image" setFontstyle="bold" setOpaque="false"/>
<Combobox setShape="10,40,170,25" setLabel="windows" setImage="images/barrow.gif,15,20" setBackgroundHighlight="ffffff" setForegroundHighlight="000066" setForeground="666699" setImageRollover="images/barrowrollover.gif">
<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 setShape="185,10,170,25" setLabel="Imagecontainer" setFontstyle="bold" setOpaque="false"/>
<Combobox setShape="185,40,170,25" setLabel="windows images" addImage="images/windows.gif,15,15" addImage="images/windows.gif,15,15" setImageContainer="40,20">
<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