kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #26634
[PATCH 10/14] CHECK: Explicitly handle events for hidden button
---
eeschema/dialogs/dialog_lib_edit_text.cpp | 7 +++++++
eeschema/dialogs/dialog_lib_edit_text.h | 1 +
2 files changed, 8 insertions(+)
diff --git a/eeschema/dialogs/dialog_lib_edit_text.cpp b/eeschema/dialogs/dialog_lib_edit_text.cpp
index a1c7cee..b9cec6b 100644
--- a/eeschema/dialogs/dialog_lib_edit_text.cpp
+++ b/eeschema/dialogs/dialog_lib_edit_text.cpp
@@ -220,3 +220,10 @@ void DIALOG_LIB_EDIT_TEXT::OnOkClick( wxCommandEvent& event )
EndModal(wxID_OK);
}
+
+
+void DIALOG_LIB_EDIT_TEXT::OnTextValueSelectButtonClick( wxCommandEvent& event )
+{
+ wxASSERT_MSG( false, wxT( "Event received for hidden control" ) );
+ event.Skip();
+}
diff --git a/eeschema/dialogs/dialog_lib_edit_text.h b/eeschema/dialogs/dialog_lib_edit_text.h
index e208bbc..b58a165 100644
--- a/eeschema/dialogs/dialog_lib_edit_text.h
+++ b/eeschema/dialogs/dialog_lib_edit_text.h
@@ -48,6 +48,7 @@ private:
void initDlg( );
void OnOkClick( wxCommandEvent& aEvent ) override;
void OnCancelClick( wxCommandEvent& aEvent ) override;
+ void OnTextValueSelectButtonClick( wxCommandEvent& event ) override;
};
Follow ups
References
-
[PATCH 00/14] RFC: Events in Dialogs
From: Simon Richter, 2016-10-12
-
[PATCH 01/14] wxFormBuilder: convert empty strings
From: Simon Richter, 2016-10-12
-
[PATCH 02/14] wxFormBuilder: update older schema files
From: Simon Richter, 2016-10-12
-
[PATCH 03/14] Remove version number from wxFB output
From: Simon Richter, 2016-10-12
-
[PATCH 04/14] wxFormBuilder: regenerate all dialogs
From: Simon Richter, 2016-10-12
-
[PATCH 05/14] wxFormBuilder: Remove unused events
From: Simon Richter, 2016-10-12
-
[PATCH 06/14] CHECK: use HTML_MESSAGE_BOX instead of base
From: Simon Richter, 2016-10-12
-
[PATCH 07/14] CHECK: use HTML_MESSAGE_BOX instead of base
From: Simon Richter, 2016-10-12
-
[PATCH 08/14] CHECK: use HTML_MESSAGE_BOX instead of base
From: Simon Richter, 2016-10-12
-
[PATCH 09/14] CHECK: fix typo
From: Simon Richter, 2016-10-12