XML Tutorials Combo Box URL Actions
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: setAction, setTarget


In the applet above we can see how setAction and setTarget properties are used. XML files are loaded in the panel(widget), which is defined as a setTarget. URL's functionallity can be added to the Combo by registering a URL for through the use of action attribute. By associating a URL with a button a web page is opened when the user clicks on the link. The link style and color can be configured. 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=310 height=400>
<param name="loadgui" value="button_url.xml">
</applet>
</body>
</html>

button_url.XML Source:

<Widget setSize="310,400" setBackground="cdc9ee">
<Widget setShape="200,0,110,400" setBackground="cdc9ee" setName="panel1"/>
<Combobox setShape="10,10,90,25" setLabel="Actions" setFontstyle="bold">
<Listbox setBackgroundHighlight="d8d0bb" setForegroundHighlight="666666" >
<Item setLabel="Bambookit" setAction="loadurl,http://www.bambookit.com"/>
<Item setLabel="Highlights" setAction="loadgui,tutorials_combo_highlights.xml" setTarget="panel1"/>
<Item setLabel="Fonts_Colors" setAction="loadgui,tutorials_combo_fonts_colors.xml" setTarget="panel1"/>
<Item setLabel="Borders" setFontstyle="bold" setAction="loadgui,tutorials_combo_border.xml" setTarget="panel1"/>
</Listbox>
</Combobox>
</Widget>

[Home][Tutorial] [Demo]

Combo
Shape Borders Fonts & Colors Highlights Images Actions Other