RadioButton Class Reference

Inherits CheckButton.

List of all members.

Public Member Functions

 RadioButton (int x, int y, int w, int h, const char *l=0)

Static Public Attributes

NamedStyledefault_style


Detailed 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 this:

Fl_Round_Button.gif

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(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.


The documentation for this class was generated from the following files:
Sun Jan 7 00:55:18 2007. FLTK ©2006 Bill Spitzak and others.
Permission is granted to reproduce this manual or any portion for any purpose, provided this copyright and permission notice are preserved.