ALBA
|
#include <albaGUIButton.h>
Public Member Functions | |
albaGUIButton (wxWindow *parent, wxWindowID id, const wxString &label, const wxPoint &pos, const wxSize &size=wxDefaultSize, long style=0) | |
albaGUIButton (wxWindow *parent, wxWindowID id=0) | |
void | SetListener (albaObserver *listener) |
Protected Member Functions | |
virtual void | Command (wxCommandEvent &event) |
void | OnSetFocus (wxFocusEvent &event) |
Protected Attributes | |
int | m_Id |
albaObserver * | m_Listener |
albaGUIButton inherit from wxButton.
It override SetDefault and SetFocus to prevent the button to display the frame typical of the selected buttons.
albaGUIButton is able to send both wxWindows messages and albaEvents. albaEvents are sent if m_Listener in not NULL otherwise wxWindows messages are sent.
Definition at line 34 of file albaGUIButton.h.
albaGUIButton::albaGUIButton | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxString & | label, | ||
const wxPoint & | pos, | ||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 |
||
) |
albaGUIButton::albaGUIButton | ( | wxWindow * | parent, |
wxWindowID | id = 0 |
||
) |
|
inline |
Set the Listener that will receive event-notification.
Definition at line 44 of file albaGUIButton.h.
|
protectedvirtual |
Overriden function member to intercept event generation and forward it to the Listener.
|
inlineprotected |
Called when the button take the focus.
Definition at line 52 of file albaGUIButton.h.
|
protected |
Definition at line 54 of file albaGUIButton.h.
|
protected |
Definition at line 55 of file albaGUIButton.h.