mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-20 15:21:21 -06:00
FIX: enable focus navigation in SpinInput/TextInput
Change-Id: I32671cb8aa23f85b868284c41a66c583161e1b89
This commit is contained in:
parent
a302a58c9e
commit
7a5bca3c30
4 changed files with 47 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue