Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members

FXButton Class Reference

#include <FXButton.h>

Inheritance diagram for FXButton:

FXLabel FXFrame FXWindow FXDrawable FXId FXObject FXMDIDeleteButton FXMDIMaximizeButton FXMDIMinimizeButton FXMDIRestoreButton FXPicker List of all members.

Public Methods

 FXButton (FXComposite *p, const FXString &text, FXIcon *ic=NULL, FXObject *tgt=NULL, FXSelector sel=0, FXuint opts=BUTTON_NORMAL, FXint x=0, FXint y=0, FXint w=0, FXint h=0, FXint pl=DEFAULT_PAD, FXint pr=DEFAULT_PAD, FXint pt=DEFAULT_PAD, FXint pb=DEFAULT_PAD)
 Construct button with text and icon.

virtual FXbool canFocus () const
 Returns true because a button can receive focus.

virtual void setFocus ()
 Move the focus to this window.

virtual void killFocus ()
 Remove the focus from this window.

virtual void setDefault (FXbool enable=TRUE)
 Set as default button.

void setState (FXuint s)
 Set the button state.

FXuint getState () const
 Get the button state.

void setButtonStyle (FXuint style)
 Set the button style flags.

FXuint getButtonStyle () const
 Get the button style flags.


Detailed Description

A button provides a push button, with optional icon and/or text label. When pressed, the button widget sends a SEL_COMMAND to its target.