OpenASIP
2.0
|
#include <FocusTrackingTextCtrl.hh>
Public Member Functions | |
FocusTrackingTextCtrl (wxWindow *parent, wxWindowID id, const wxString &value=_T(""), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0, const wxValidator &validator=wxDefaultValidator, const wxString &name=_T("FocusTrackingTextCtrl")) | |
~FocusTrackingTextCtrl () | |
Private Member Functions | |
void | onKillFocus (wxFocusEvent &event) |
Textfield widget which emits a wxEVT_COMMAND_TEXT_ENTER when losing keyboard focus.
This widget behaves exactly like wxTextCtrl except for the event emited when focus is lost. This widget is useful for textfields which are validated when the user presses enter on the widget or changes the keyboard focus to another window. The created text widget has always the wxTE_PROCESS_ENTER style set.
Definition at line 47 of file FocusTrackingTextCtrl.hh.
FocusTrackingTextCtrl::FocusTrackingTextCtrl | ( | wxWindow * | parent, |
wxWindowID | id, | ||
const wxString & | value = _T("") , |
||
const wxPoint & | pos = wxDefaultPosition , |
||
const wxSize & | size = wxDefaultSize , |
||
long | style = 0 , |
||
const wxValidator & | validator = wxDefaultValidator , |
||
const wxString & | name = _T("FocusTrackingTextCtrl") |
||
) |
The Constructor.
parent | Parent window of the control. |
id | Numeric id for the control. |
value | Initial value of the text field. |
pos | Position of the control. |
size | Size of the control. |
style | Style flags for the text control. |
validator | Validator for the control. |
name | Name of the control. |
Definition at line 50 of file FocusTrackingTextCtrl.cc.
FocusTrackingTextCtrl::~FocusTrackingTextCtrl | ( | ) |
|
private |
Emits a wxEVT_COMMAND_TEXT_ENTER event when the control loses focus.
event | Focus event of the control losing focus. |
Definition at line 76 of file FocusTrackingTextCtrl.cc.