Sanko Robinson > FLTK > FLTK::RadioButton

Download:
FLTK-0.532009.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 0.532006   Source  

NAME ^

FLTK::RadioButton - Button with a circle indicator to it's left, turning it on turns off all other radio buttons in the same Group

Description ^

This button turns the value( ) on when clicked, and turns all other RadioButton widgets in the same group off. It displays a round dot to show the user the current status.

You can control the color of the circle with color( ) and the color of the dot with textcolor( ). You can make it draw different colors when turned on by setting selection_color( ) and selection_textcolor( ) on the widget (these are ignored if set in an inherited style( )).

If you want, you can make any other button act like a RadioButton by doing type(FLTK::Button::RADIO) to it. Be sure to lay out and decorate your interface so it is clear to the user that they are radio buttons.

Functions ^

default_style

my $style = $radiobutton->default_style( );

Get the style

$radiobutton->default_style( $style );

Set the style.

new

my $self = $radiobutton->new( $x, $y, $w, $h, $label );

Creates a new FLTK::RadioButton object.

Author ^

Sanko Robinson <sanko@cpan.org> - http://sankorobinson.com/

License and Legal ^

Copyright (C) 2008-2010 by Sanko Robinson <sanko@cpan.org>

This program is free software; you can redistribute it and/or modify it under the terms of The Artistic License 2.0. See the LICENSE file included with this distribution or notes on the Artistic License 2.0 for clarification.

When separated from the distribution, all original POD documentation is covered by the Creative Commons Attribution-Share Alike 3.0 License. See the clarification of the CCA-SA3.0.

syntax highlighting: