XML Tutorial Radio set Value, Align, Trnsparency, Visible, Enabled
Version 1.6
This is the archives. For the latest Bambookit GUI 2.0, XML GUI Demos & Tutorials visit: www.bambookit.com/_demo.html


Radio's Property: setValue, setEnabled, setOpaque, setVisible, setAlign

setValue is used to display a selected state in the Radio. It can be set to False or True. Default is False. Opaque is used to set the Radio's transparency, if opaque is set to 'false', then the elements behind the Radio are visible (refer to the applet) and Foreground highlight is set automatically to white. You can use this feature set the transparency of your Radios if you want the images on your background to be seen through this Radio. setVisible is used to show or hide a Radio. It can be set to False or True. Default is True. You may align your text as you may see fit in the Radio's labels: left aligned, centered and right aligned. Refer to Reference for complete list of Radios Properties.

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

tutorials_Radio_other.XML Source:

<Widget setSize="110,300" setBackground="cdc9ee">
<Radio setShape="10,10,90,25" setLabel="Check" setCheck="true" setAlign="right"/>
<Radio setShape="10,40,90,50" setLabel="disabled" setEnabled="false"/>
<Radio setShape="10,95,90,100" setLabel="opaque false" setOpaque="false"/>
</Widget>

[Home][Tutorial] [Demo]

Radio
Borders Fonts & Colors Highlights Images Groups Other