FIX:replace button click event for pop dialog
jira:[none] Change-Id: I2d36a10ffeb128f1fcc8aedab5eb5ea286f8a1dc
This commit is contained in:
parent
c26193281b
commit
4030bde50d
|
@ -583,7 +583,7 @@ SecondaryCheckDialog::SecondaryCheckDialog(wxWindow* parent, wxWindowID id, cons
|
||||||
m_button_ok->SetMaxSize(wxSize(-1, FromDIP(24)));
|
m_button_ok->SetMaxSize(wxSize(-1, FromDIP(24)));
|
||||||
m_button_ok->SetCornerRadius(FromDIP(12));
|
m_button_ok->SetCornerRadius(FromDIP(12));
|
||||||
|
|
||||||
m_button_ok->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& e) {
|
m_button_ok->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this](wxCommandEvent& e) {
|
||||||
wxCommandEvent evt(EVT_SECONDARY_CHECK_CONFIRM, GetId());
|
wxCommandEvent evt(EVT_SECONDARY_CHECK_CONFIRM, GetId());
|
||||||
e.SetEventObject(this);
|
e.SetEventObject(this);
|
||||||
GetEventHandler()->ProcessEvent(evt);
|
GetEventHandler()->ProcessEvent(evt);
|
||||||
|
@ -600,7 +600,7 @@ SecondaryCheckDialog::SecondaryCheckDialog(wxWindow* parent, wxWindowID id, cons
|
||||||
m_button_retry->SetMaxSize(wxSize(-1, FromDIP(24)));
|
m_button_retry->SetMaxSize(wxSize(-1, FromDIP(24)));
|
||||||
m_button_retry->SetCornerRadius(FromDIP(12));
|
m_button_retry->SetCornerRadius(FromDIP(12));
|
||||||
|
|
||||||
m_button_retry->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& e) {
|
m_button_retry->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this](wxCommandEvent& e) {
|
||||||
wxCommandEvent evt(EVT_SECONDARY_CHECK_RETRY, GetId());
|
wxCommandEvent evt(EVT_SECONDARY_CHECK_RETRY, GetId());
|
||||||
e.SetEventObject(this);
|
e.SetEventObject(this);
|
||||||
GetEventHandler()->ProcessEvent(evt);
|
GetEventHandler()->ProcessEvent(evt);
|
||||||
|
@ -616,7 +616,7 @@ SecondaryCheckDialog::SecondaryCheckDialog(wxWindow* parent, wxWindowID id, cons
|
||||||
m_button_cancel->SetMaxSize(wxSize(-1, FromDIP(24)));
|
m_button_cancel->SetMaxSize(wxSize(-1, FromDIP(24)));
|
||||||
m_button_cancel->SetCornerRadius(FromDIP(12));
|
m_button_cancel->SetCornerRadius(FromDIP(12));
|
||||||
|
|
||||||
m_button_cancel->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& e) {
|
m_button_cancel->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this](wxCommandEvent& e) {
|
||||||
wxCommandEvent evt(EVT_SECONDARY_CHECK_CANCEL);
|
wxCommandEvent evt(EVT_SECONDARY_CHECK_CANCEL);
|
||||||
e.SetEventObject(this);
|
e.SetEventObject(this);
|
||||||
GetEventHandler()->ProcessEvent(evt);
|
GetEventHandler()->ProcessEvent(evt);
|
||||||
|
@ -632,7 +632,7 @@ SecondaryCheckDialog::SecondaryCheckDialog(wxWindow* parent, wxWindowID id, cons
|
||||||
m_button_fn->SetMaxSize(wxSize(-1, FromDIP(24)));
|
m_button_fn->SetMaxSize(wxSize(-1, FromDIP(24)));
|
||||||
m_button_fn->SetCornerRadius(FromDIP(12));
|
m_button_fn->SetCornerRadius(FromDIP(12));
|
||||||
|
|
||||||
m_button_fn->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& e) {
|
m_button_fn->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this](wxCommandEvent& e) {
|
||||||
post_event(wxCommandEvent(EVT_SECONDARY_CHECK_DONE));
|
post_event(wxCommandEvent(EVT_SECONDARY_CHECK_DONE));
|
||||||
e.Skip();
|
e.Skip();
|
||||||
});
|
});
|
||||||
|
@ -646,7 +646,7 @@ SecondaryCheckDialog::SecondaryCheckDialog(wxWindow* parent, wxWindowID id, cons
|
||||||
m_button_resume->SetMaxSize(wxSize(-1, FromDIP(24)));
|
m_button_resume->SetMaxSize(wxSize(-1, FromDIP(24)));
|
||||||
m_button_resume->SetCornerRadius(FromDIP(12));
|
m_button_resume->SetCornerRadius(FromDIP(12));
|
||||||
|
|
||||||
m_button_resume->Bind(wxEVT_LEFT_DOWN, [this](wxMouseEvent& e) {
|
m_button_resume->Bind(wxEVT_COMMAND_BUTTON_CLICKED, [this](wxCommandEvent& e) {
|
||||||
post_event(wxCommandEvent(EVT_SECONDARY_CHECK_RESUME));
|
post_event(wxCommandEvent(EVT_SECONDARY_CHECK_RESUME));
|
||||||
e.Skip();
|
e.Skip();
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue