#include <wxTextCtrlWrapper.h>
Definition at line 20 of file wxTextCtrlWrapper.h.
◆ wxTextCtrlWrapper()
wxTextCtrlWrapper::wxTextCtrlWrapper |
( |
wxWindow * |
parent, |
|
|
wxWindowID |
id, |
|
|
const wxString & |
value = {} , |
|
|
const wxPoint & |
pos = wxDefaultPosition , |
|
|
const wxSize & |
size = wxDefaultSize , |
|
|
long |
style = 0 , |
|
|
const wxValidator & |
validator = wxDefaultValidator , |
|
|
const wxString & |
name = wxTextCtrlNameStr |
|
) |
| |
|
inline |
Definition at line 23 of file wxTextCtrlWrapper.h.
24 {},
25 const wxPoint &pos = wxDefaultPosition,
26 const wxSize &
size = wxDefaultSize,
28 const wxValidator &validator = wxDefaultValidator,
29 const wxString &
name = wxTextCtrlNameStr)
30 : wxTextCtrl(parent,
id, value, pos,
size,
style, validator,
name)
31 {
33
34 Bind(wxEVT_KEY_DOWN, [&](wxKeyEvent &event)
35 {
36 auto keyCode = event.GetKeyCode();
38 {
39 if (keyCode >= WXK_SPACE || keyCode == WXK_DELETE || keyCode == WXK_BACK)
40 {
41 event.Skip(false);
42 return;
43 }
44 }
45
46 event.Skip();
47 });
48 };
◆ ~wxTextCtrlWrapper()
wxTextCtrlWrapper::~wxTextCtrlWrapper |
( |
| ) |
|
|
inline |
◆ AcceptsFocusFromKeyboard()
virtual bool wxTextCtrlWrapper::AcceptsFocusFromKeyboard |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ IsReadOnly()
bool wxTextCtrlWrapper::IsReadOnly |
( |
| ) |
|
|
inline |
◆ SetReadOnly()
void wxTextCtrlWrapper::SetReadOnly |
( |
bool |
readonly = true | ) |
|
|
inline |
◆ mReadOnly
bool wxTextCtrlWrapper::mReadOnly |
|
private |
The documentation for this class was generated from the following file: