Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | Related Pages | Examples

fgl::FGButtonGroup Class Reference

#include <fastgl.h>

Collaboration diagram for fgl::FGButtonGroup:

Collaboration graph
[legend]
List of all members.

Detailed Description

When you write the code to manage some menus, sometimes you need program the group of buttons, that would worked as welded. When you choose one, previous goes to the inactive state - this is called a FGButtonGroup - and make possible to you easy aggregate items like CheckBoxs, RadioButtons, or FGPushButton (the word or is at a right place, because you can't mix these types together!). The default number of items is 32.
Examples:

bgroup.cpp, and buttons.cpp.


Public Member Functions

 FGButtonGroup (int maximum=32)
 FGButtonGroup (const FGButtonGroup &old)
void __fastcall AddToGroup (FGControl *p, int activ=0)
void __fastcall Clear (void)
void __fastcall RefreshGroup (FGControl *c)
void __fastcall DisableGroup (void)
void __fastcall EnableGroup (void)


Constructor & Destructor Documentation

fgl::FGButtonGroup::FGButtonGroup int  maximum = 32  )  [inline]
 

Creates an empty group of the FGControl. Default number of items is 32. You can pass your own value.


Member Function Documentation

void __fastcall fgl::FGButtonGroup::AddToGroup FGControl p,
int  activ = 0
 

Add FGControl object to the FGButtonGroup. The argument active is not mandatory (default = false) and if you set this to true, then object will have the active state at the start. If you mix no acceptable items together, or if you add other than allowed types, an error dialog will be displayed.

Examples:
bgroup.cpp, and buttons.cpp.

void __fastcall fgl::FGButtonGroup::Clear void   )  [inline]
 

Reset the group. You can add controls now again.

void __fastcall fgl::FGButtonGroup::DisableGroup void   ) 
 

Disable all the group completely.

void __fastcall fgl::FGButtonGroup::EnableGroup void   ) 
 

Enable all the group completely.

void __fastcall fgl::FGButtonGroup::RefreshGroup FGControl c  ) 
 

Redraw all the group completely.


Generated on Wed Feb 9 11:31:40 2005 for OpenGUI by  doxygen 1.4.0