FIX: enable focus navigation in SpinInput/TextInput

Change-Id: I32671cb8aa23f85b868284c41a66c583161e1b89
This commit is contained in:
chunmao.guo 2022-07-27 19:33:30 +08:00 committed by Lane.Wei
parent a302a58c9e
commit 7a5bca3c30
4 changed files with 47 additions and 20 deletions

View file

@ -7,7 +7,7 @@
class Button;
class SpinInput : public wxWindow
class SpinInput : public wxNavigationEnabled<wxWindow>
{
bool hover;
@ -31,6 +31,8 @@ class SpinInput : public wxWindow
static const int SpinInputHeight = 50;
public:
SpinInput();
SpinInput(wxWindow * parent,
wxString text,
wxString label = "",
@ -39,6 +41,16 @@ public:
long style = 0,
int min = 0, int max = 100, int initial = 0);
void Create(wxWindow * parent,
wxString text,
wxString label = "",
const wxPoint &pos = wxDefaultPosition,
const wxSize & size = wxDefaultSize,
long style = 0,
int min = 0,
int max = 100,
int initial = 0);
void SetCornerRadius(double radius);
void SetLabel(const wxString &label) wxOVERRIDE;