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

fgl::FGPushButton Class Reference

#include <fastgl.h>

Inheritance diagram for fgl::FGPushButton:

Inheritance graph
[legend]
Collaboration diagram for fgl::FGPushButton:

Collaboration graph
[legend]
List of all members.

Detailed Description

Use FGPushButton to put a standard push button on a FGWindow. FGPushButton introduces several properties to control its behaviour in a dialog box settings. Users choose button controls to initiate actions.

pushbutt.png

This button can be grouped into the set of mutually exclussive options to the user - that is, only one radio button in a set can be selected at a time. When the user selects a button, the previously selected button becomes unselected. Buttons are frequently grouped in a button group box (FGButtonGroup). Add the group box to the FGWindow first, then put the buttons into the group box. For example, two buttons on a FGWindow can be checked at the same time only if they are contained in separate containers, such as two different group boxes.

To add this FGControl use FGWindow::AddPushButton()

Examples:

hello.cpp.


Public Member Functions

 FGPushButton (int xs, int ys, int ws, int hs, const char *nm, int key, FGWindow *w, ControlCall f, void *user_data)
 FGPushButton (int xs, int ys, int key, FGWindow *w, FGDrawBuffer *bm, ControlCall f, void *user_data)
 FGPushButton (int xs, int ys, int ws, int hs, const char *nm, int key, FGWindow *w, FGDrawBuffer *bm, ControlCall f, void *user_data)
void ClickDown (void)
void ClickUp (int)
void Push (void)
void Release (void)
virtual void draw (void)
void AddBitmaps (FGDrawBuffer *push=0, FGDrawBuffer *disable=0)


Member Function Documentation

void fgl::FGPushButton::draw void   )  [virtual]
 

Draws a FGPushButton.

Reimplemented from fgl::FGControl.


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