FIX: background color of text ctrl when disabled

Change-Id: I904a6ea78a692e2f511857d908c98ffa8f8b1bc8
This commit is contained in:
chunmao.guo 2022-07-27 10:36:34 +08:00 committed by Lane.Wei
parent 654dd34652
commit 396918f21f
2 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,7 @@ bool SpinInput::Enable(bool enable)
wxCommandEvent e(EVT_ENABLE_CHANGED);
e.SetEventObject(this);
GetEventHandler()->ProcessEvent(e);
text_ctrl->SetBackgroundColour(background_color.colorForStates(state_handler.states()));
}
return result;
}

View File

@ -150,6 +150,7 @@ bool TextInput::Enable(bool enable)
wxCommandEvent e(EVT_ENABLE_CHANGED);
e.SetEventObject(this);
GetEventHandler()->ProcessEvent(e);
text_ctrl->SetBackgroundColour(background_color.colorForStates(state_handler.states()));
}
return result;
}