Button Opaque Enabled Visible Align Sticky - XML Tutorial
Version 1.6

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

Button's Property: setSticky, setEnabled, setOpaque, setVisible, setAlign

Button is part of the GUI elements in Bamboo Suite for building interactive Internet applications. Sticky is used to maintain a selected state in the button by clicking on it. It can be set to False or True. Default is True. Go to the applet and click on the sticky button, which label set as True. Opaque is used to set the button's transparency, if opaque is set to 'false', then the elements behind the button are visible (refer to the applet). You can use this feature set the transparency of your buttons if you want the images on your background to be seen through this button. setVisible is used to show or hide a button. It can be set to False or True. Default is True. You may align your text as you may see fit in the button's labels: left aligned, centered and right aligned.

Refer to Reference for complete list of Buttons Properties.

See complete XML source for this applet.

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

button_border.bui Source:

<Widget setSize="110,300" setBackground="d8d0bb">
<Button setShape="10,10,90,25" setLabel="sticky" setSticky="true" setAlign="left" setBackground="f8f4db"/>
<Button setShape="10,40,90,50" setLabel="disabled" setEnabled="false" setBackground="f8f4db"/>
<Button setShape="10,95,90,100" setLabel="opaque false" setOpaque="false" setBackground="f8f4db"/>
</Widget>

[Home][Tutorial] [Demo]

Button
Shape Borders Fonts & Colors Highlights Images Actions Other