From f8ec23db005b91c09b8774dd573c95759a1990ac Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 3 Apr 2025 13:19:20 +0200 Subject: [PATCH] WX_PT_ENTRY_DIALOG: enhancements: fix min size and add reset button. It is used to enter a point position and a grid origin. The new button (only in grid origin dialog) allows reset the position. --- common/dialogs/dialog_unit_entry.cpp | 13 +- common/dialogs/dialog_unit_entry_base.cpp | 13 +- common/dialogs/dialog_unit_entry_base.fbp | 1596 +++++++++++---------- common/dialogs/dialog_unit_entry_base.h | 11 +- common/tool/actions.cpp | 3 +- common/tool/common_tools.cpp | 2 +- include/dialogs/dialog_unit_entry.h | 4 +- pcbnew/tools/pcb_point_editor.cpp | 2 +- 8 files changed, 879 insertions(+), 765 deletions(-) diff --git a/common/dialogs/dialog_unit_entry.cpp b/common/dialogs/dialog_unit_entry.cpp index 0bb4fbfaa8..2f55d3b914 100644 --- a/common/dialogs/dialog_unit_entry.cpp +++ b/common/dialogs/dialog_unit_entry.cpp @@ -50,11 +50,13 @@ int WX_UNIT_ENTRY_DIALOG::GetValue() WX_PT_ENTRY_DIALOG::WX_PT_ENTRY_DIALOG( EDA_DRAW_FRAME* aParent, const wxString& aCaption, const wxString& aLabelX, const wxString& aLabelY, - const VECTOR2I& aDefaultValue ) : + const VECTOR2I& aDefaultValue, bool aShowResetButt ) : WX_PT_ENTRY_DIALOG_BASE( ( wxWindow* ) aParent, wxID_ANY, aCaption ), m_unit_binder_x( aParent, m_labelX, m_textCtrlX, m_unitsX, true ), m_unit_binder_y( aParent, m_labelY, m_textCtrlY, m_unitsY, true ) { + m_ButtonReset->Show( aShowResetButt ); + m_labelX->SetLabel( aLabelX ); m_labelY->SetLabel( aLabelY ); @@ -67,8 +69,7 @@ WX_PT_ENTRY_DIALOG::WX_PT_ENTRY_DIALOG( EDA_DRAW_FRAME* aParent, const wxString& SetInitialFocus( m_textCtrlX ); SetupStandardButtons(); - Layout(); - bSizerMain->Fit( this ); + finishDialogSettings(); } @@ -76,3 +77,9 @@ VECTOR2I WX_PT_ENTRY_DIALOG::GetValue() { return VECTOR2I( m_unit_binder_x.GetIntValue(), m_unit_binder_y.GetIntValue() ); } + +void WX_PT_ENTRY_DIALOG::ResetValues( wxCommandEvent& event ) +{ + m_unit_binder_x.SetValue( 0 ); + m_unit_binder_y.SetValue( 0 ); +} diff --git a/common/dialogs/dialog_unit_entry_base.cpp b/common/dialogs/dialog_unit_entry_base.cpp index dcf61f1c0b..54e2444678 100644 --- a/common/dialogs/dialog_unit_entry_base.cpp +++ b/common/dialogs/dialog_unit_entry_base.cpp @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b) +// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -102,8 +102,11 @@ WX_PT_ENTRY_DIALOG_BASE::WX_PT_ENTRY_DIALOG_BASE( wxWindow* parent, wxWindowID i wxBoxSizer* bSizerButtons; bSizerButtons = new wxBoxSizer( wxHORIZONTAL ); + m_ButtonReset = new wxButton( this, wxID_ANY, _("Reset"), wxDefaultPosition, wxDefaultSize, 0 ); + bSizerButtons->Add( m_ButtonReset, 0, wxALL|wxRESERVE_SPACE_EVEN_IF_HIDDEN, 5 ); - bSizerButtons->Add( 100, 0, 1, wxALIGN_CENTER_VERTICAL, 5 ); + + bSizerButtons->Add( 30, 0, 1, wxALIGN_CENTER_VERTICAL, 5 ); m_sdbSizer1 = new wxStdDialogButtonSizer(); m_sdbSizer1OK = new wxButton( this, wxID_OK ); @@ -123,8 +126,14 @@ WX_PT_ENTRY_DIALOG_BASE::WX_PT_ENTRY_DIALOG_BASE( wxWindow* parent, wxWindowID i bSizerMain->Fit( this ); this->Centre( wxBOTH ); + + // Connect Events + m_ButtonReset->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( WX_PT_ENTRY_DIALOG_BASE::ResetValues ), NULL, this ); } WX_PT_ENTRY_DIALOG_BASE::~WX_PT_ENTRY_DIALOG_BASE() { + // Disconnect Events + m_ButtonReset->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( WX_PT_ENTRY_DIALOG_BASE::ResetValues ), NULL, this ); + } diff --git a/common/dialogs/dialog_unit_entry_base.fbp b/common/dialogs/dialog_unit_entry_base.fbp index 4dd4395dd5..0cdcba713a 100644 --- a/common/dialogs/dialog_unit_entry_base.fbp +++ b/common/dialogs/dialog_unit_entry_base.fbp @@ -1,766 +1,854 @@ - + - - - - C++ - 1 - source_name - 0 - 0 - res - UTF-8 - connect - dialog_unit_entry_base - 1000 - none - - - 1 - dialog_unit_entry_base - - . - - 1 - 1 - 1 - 1 - UI - 0 - 0 - 0 - - 0 - wxAUI_MGR_DEFAULT - - wxBOTH - - 1 - 1 - impl_virtual - - - - 0 - wxID_ANY - + + + C++ + + 1 + connect + none + + + 0 + 0 + res + UTF-8 + dialog_unit_entry_base + 1000 + 1 + 1 + UI + dialog_unit_entry_base + . + 0 + source_name + 1 + 0 + source_name + + + 1 + 1 + 0 + 0 + + 0 + wxAUI_MGR_DEFAULT + + wxBOTH + + 1 + 0 + 1 + impl_virtual + + + + 0 + wxID_ANY + + + WX_UNIT_ENTRY_DIALOG_BASE + + -1,-1 + wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER + DIALOG_SHIM; dialog_shim.h + Title + + 0 + + + + + + bSizerMain + wxVERTICAL + protected + + 5 + wxEXPAND|wxRIGHT|wxLEFT + 1 + - WX_UNIT_ENTRY_DIALOG_BASE - - -1,-1 - wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER - DIALOG_SHIM; dialog_shim.h - Title - - 0 - - - - + bSizerContent + wxHORIZONTAL + none + + 5 + wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT + 0 + + 1 + 1 + 1 + 1 + 0 + + 0 + 0 + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 0 + 1 + + 1 + + 0 + 0 + wxID_ANY + MyLabel + 0 + + 0 + + + 0 - bSizerMain - wxVERTICAL + 1 + m_label + 1 + + protected - - 5 - wxEXPAND|wxRIGHT|wxLEFT - 1 - - - bSizerContent - wxHORIZONTAL - none - - 5 - wxALIGN_CENTER_VERTICAL|wxTOP|wxBOTTOM|wxLEFT - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - MyLabel - 0 - - 0 - - - 0 - - 1 - m_label - 1 - - - protected - 1 - - Resizable - 1 - - - ; forward_declare - 0 - - - - - -1 - - - - 5 - wxALIGN_CENTER_VERTICAL|wxALL - 1 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - - 0 - - - - 0 - -1,-1 - 1 - m_textCtrl - 1 - - - protected - 1 - - Resizable - 1 - - - ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - 5 - wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - unit - 0 - - 0 - - - 0 - - 1 - m_unit_label - 1 - - - protected - 1 - - Resizable - 1 - - - ; forward_declare - 0 - - - - - -1 - - - - - - 5 - wxEXPAND - 1 - - - bSizerButtons - wxHORIZONTAL - none - - 5 - - 1 - - 0 - protected - 100 - - - - 5 - wxALL - 0 - - 0 - 1 - 0 - 0 - 0 - 1 - 0 - 0 - - m_sdbSizer1 - protected - - - - + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + + + -1 + + + 5 + wxALIGN_CENTER_VERTICAL|wxALL + 1 + + 1 + 1 + 1 + 1 + 0 + + 0 + 0 + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 0 + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + 0 + + 0 + -1,-1 + 1 + m_textCtrl + 1 + + + protected + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + 5 + wxTOP|wxBOTTOM|wxRIGHT|wxALIGN_CENTER_VERTICAL + 0 + + 1 + 1 + 1 + 1 + 0 + + 0 + 0 + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 0 + 1 + + 1 + + 0 + 0 + wxID_ANY + unit + 0 + + 0 + + + 0 + + 1 + m_unit_label + 1 + + + protected + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + + + -1 + + + - - 0 - wxAUI_MGR_DEFAULT - - wxBOTH - - 1 - 1 - impl_virtual - - - - 0 - wxID_ANY - + + 5 + wxEXPAND + 1 + - WX_PT_ENTRY_DIALOG_BASE - - -1,-1 - wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER - DIALOG_SHIM; dialog_shim.h - Move Point to Location - - 0 - - - - - - bSizerMain - wxVERTICAL + bSizerButtons + wxHORIZONTAL + none + + 5 + + 1 + + 0 protected - - 5 - wxEXPAND|wxALL - 1 - - 3 - wxBOTH - 1 - - 0 - - fgSizer - wxFLEX_GROWMODE_SPECIFIED - none - 0 - 5 - - 5 - wxALIGN_CENTER_VERTICAL|wxLEFT - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - X label: - 0 - - 0 - - - 0 - - 1 - m_labelX - 1 - - - protected - 1 - - Resizable - 1 - - - ; forward_declare - 0 - - - - - -1 - - - - 5 - wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - - 0 - - - - 0 - -1,-1 - 1 - m_textCtrlX - 1 - - - protected - 1 - - Resizable - 1 - - - ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxRIGHT - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - unit - 0 - - 0 - - - 0 - - 1 - m_unitsX - 1 - - - protected - 1 - - Resizable - 1 - - - ; forward_declare - 0 - - - - - -1 - - - - 5 - wxALIGN_CENTER_VERTICAL|wxLEFT - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - Y label: - 0 - - 0 - - - 0 - - 1 - m_labelY - 1 - - - protected - 1 - - Resizable - 1 - - - ; forward_declare - 0 - - - - - -1 - - - - 5 - wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - - 0 - - - - 0 - -1,-1 - 1 - m_textCtrlY - 1 - - - protected - 1 - - Resizable - 1 - - - ; forward_declare - 0 - - - wxFILTER_NONE - wxDefaultValidator - - - - - - - - - 5 - wxALIGN_CENTER_VERTICAL|wxRIGHT - 0 - - 1 - 1 - 1 - 1 - - - - - - - - 1 - 0 - 1 - - 1 - 0 - Dock - 0 - Left - 1 - - 1 - - 0 - 0 - wxID_ANY - unit - 0 - - 0 - - - 0 - - 1 - m_unitsY - 1 - - - protected - 1 - - Resizable - 1 - - - ; forward_declare - 0 - - - - - -1 - - - - - - 5 - wxEXPAND - 0 - - - bSizerButtons - wxHORIZONTAL - none - - 5 - wxALIGN_CENTER_VERTICAL - 1 - - 0 - protected - 100 - - - - 5 - wxALL - 0 - - 0 - 1 - 0 - 0 - 0 - 1 - 0 - 0 - - m_sdbSizer1 - protected - - - - + 100 + + + 5 + wxALL + 0 + + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + + m_sdbSizer1 + protected + + + + + + 0 + wxAUI_MGR_DEFAULT + + wxBOTH + + 1 + 0 + 1 + impl_virtual + + + + 0 + wxID_ANY + + + WX_PT_ENTRY_DIALOG_BASE + + -1,-1 + wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER + DIALOG_SHIM; dialog_shim.h + Move Point to Location + + 0 + + + + + + bSizerMain + wxVERTICAL + protected + + 5 + wxEXPAND|wxALL + 1 + + 3 + wxBOTH + 1 + + 0 + + fgSizer + wxFLEX_GROWMODE_SPECIFIED + none + 0 + 5 + + 5 + wxALIGN_CENTER_VERTICAL|wxLEFT + 0 + + 1 + 1 + 1 + 1 + 0 + + 0 + 0 + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 0 + 1 + + 1 + + 0 + 0 + wxID_ANY + X label: + 0 + + 0 + + + 0 + + 1 + m_labelX + 1 + + + protected + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + 0 + + 0 + 0 + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 0 + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + 0 + + 0 + -1,-1 + 1 + m_textCtrlX + 1 + + + protected + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + 5 + wxALIGN_CENTER_VERTICAL|wxRIGHT + 0 + + 1 + 1 + 1 + 1 + 0 + + 0 + 0 + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 0 + 1 + + 1 + + 0 + 0 + wxID_ANY + unit + 0 + + 0 + + + 0 + + 1 + m_unitsX + 1 + + + protected + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALIGN_CENTER_VERTICAL|wxLEFT + 0 + + 1 + 1 + 1 + 1 + 0 + + 0 + 0 + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 0 + 1 + + 1 + + 0 + 0 + wxID_ANY + Y label: + 0 + + 0 + + + 0 + + 1 + m_labelY + 1 + + + protected + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + + + -1 + + + + 5 + wxALIGN_CENTER_VERTICAL|wxRIGHT|wxLEFT|wxEXPAND + 0 + + 1 + 1 + 1 + 1 + 0 + + 0 + 0 + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 0 + 1 + + 1 + + 0 + 0 + wxID_ANY + + 0 + + 0 + + 0 + -1,-1 + 1 + m_textCtrlY + 1 + + + protected + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + + + + + 5 + wxALIGN_CENTER_VERTICAL|wxRIGHT + 0 + + 1 + 1 + 1 + 1 + 0 + + 0 + 0 + + + + 1 + 0 + 1 + + 1 + 0 + Dock + 0 + Left + 0 + 1 + + 1 + + 0 + 0 + wxID_ANY + unit + 0 + + 0 + + + 0 + + 1 + m_unitsY + 1 + + + protected + 1 + + Resizable + 1 + + + ; forward_declare + 0 + + + + + -1 + + + + + + 5 + wxEXPAND + 0 + + + bSizerButtons + wxHORIZONTAL + none + + 5 + wxALL|wxRESERVE_SPACE_EVEN_IF_HIDDEN + 0 + + 1 + 1 + 1 + 1 + 0 + + 0 + 0 + 0 + + + + + 1 + 0 + 1 + + 1 + + 0 + 0 + + Dock + 0 + Left + 0 + 1 + + 1 + + + 0 + 0 + wxID_ANY + Reset + + 0 + + 0 + + + 0 + + 1 + m_ButtonReset + 1 + + + protected + 1 + + + + Resizable + 1 + + + ; ; forward_declare + 0 + + + wxFILTER_NONE + wxDefaultValidator + + + + + ResetValues + + + + 5 + wxALIGN_CENTER_VERTICAL + 1 + + 0 + protected + 40 + + + + 5 + wxALL + 0 + + 0 + 1 + 0 + 0 + 0 + 1 + 0 + 0 + + m_sdbSizer1 + protected + + + + + + + diff --git a/common/dialogs/dialog_unit_entry_base.h b/common/dialogs/dialog_unit_entry_base.h index 257a7079ff..fd2a962712 100644 --- a/common/dialogs/dialog_unit_entry_base.h +++ b/common/dialogs/dialog_unit_entry_base.h @@ -1,5 +1,5 @@ /////////////////////////////////////////////////////////////////////////// -// C++ code generated with wxFormBuilder (version 3.10.1-0-g8feb16b) +// C++ code generated with wxFormBuilder (version 4.2.1-0-g80c4cb6) // http://www.wxformbuilder.org/ // // PLEASE DO *NOT* EDIT THIS FILE! @@ -21,10 +21,12 @@ #include #include #include +#include +#include +#include /////////////////////////////////////////////////////////////////////////// - /////////////////////////////////////////////////////////////////////////////// /// Class WX_UNIT_ENTRY_DIALOG_BASE /////////////////////////////////////////////////////////////////////////////// @@ -64,10 +66,15 @@ class WX_PT_ENTRY_DIALOG_BASE : public DIALOG_SHIM wxStaticText* m_labelY; wxTextCtrl* m_textCtrlY; wxStaticText* m_unitsY; + wxButton* m_ButtonReset; wxStdDialogButtonSizer* m_sdbSizer1; wxButton* m_sdbSizer1OK; wxButton* m_sdbSizer1Cancel; + // Virtual event handlers, override them in your derived class + virtual void ResetValues( wxCommandEvent& event ) { event.Skip(); } + + public: WX_PT_ENTRY_DIALOG_BASE( wxWindow* parent, wxWindowID id = wxID_ANY, const wxString& title = _("Move Point to Location"), const wxPoint& pos = wxDefaultPosition, const wxSize& size = wxSize( -1,-1 ), long style = wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER ); diff --git a/common/tool/actions.cpp b/common/tool/actions.cpp index 6c26973c64..aa8f9cb8bf 100644 --- a/common/tool/actions.cpp +++ b/common/tool/actions.cpp @@ -1051,7 +1051,8 @@ TOOL_ACTION ACTIONS::gridOrigin( TOOL_ACTION_ARGS() .Name( "common.Control.editGridOrigin" ) .Scope( AS_GLOBAL ) .FriendlyName( _( "Grid Origin..." ) ) - .Tooltip( _( "Set the grid origin point" ) ) ); + .Tooltip( _( "Set the grid origin point" ) ) + .Icon( BITMAPS::grid_select_axis ) ); TOOL_ACTION ACTIONS::inchesUnits( TOOL_ACTION_ARGS() .Name( "common.Control.imperialUnits" ) diff --git a/common/tool/common_tools.cpp b/common/tool/common_tools.cpp index 65e5c944dc..9e1f4c0fca 100644 --- a/common/tool/common_tools.cpp +++ b/common/tool/common_tools.cpp @@ -627,7 +627,7 @@ int COMMON_TOOLS::GridProperties( const TOOL_EVENT& aEvent ) int COMMON_TOOLS::GridOrigin( const TOOL_EVENT& aEvent ) { VECTOR2I origin = m_frame->GetGridOrigin(); - WX_PT_ENTRY_DIALOG dlg( m_frame, _( "Grid Origin" ), _( "X:" ), _( "Y:" ), origin ); + WX_PT_ENTRY_DIALOG dlg( m_frame, _( "Grid Origin" ), _( "X:" ), _( "Y:" ), origin, true ); if( dlg.ShowModal() == wxID_OK ) { diff --git a/include/dialogs/dialog_unit_entry.h b/include/dialogs/dialog_unit_entry.h index 22da240b58..656fa16c07 100644 --- a/include/dialogs/dialog_unit_entry.h +++ b/include/dialogs/dialog_unit_entry.h @@ -52,13 +52,15 @@ class WX_PT_ENTRY_DIALOG : public WX_PT_ENTRY_DIALOG_BASE { public: WX_PT_ENTRY_DIALOG( EDA_DRAW_FRAME* aParent, const wxString& aCaption, const wxString& aLabelX, - const wxString& aLabelY, const VECTOR2I& aDefaultValue ); + const wxString& aLabelY, const VECTOR2I& aDefaultValue, bool aShowResetButt ); /** * Return the value in internal units. */ VECTOR2I GetValue(); + void ResetValues( wxCommandEvent& event ) override; + private: UNIT_BINDER m_unit_binder_x; UNIT_BINDER m_unit_binder_y; diff --git a/pcbnew/tools/pcb_point_editor.cpp b/pcbnew/tools/pcb_point_editor.cpp index e638e9f018..c78b137132 100644 --- a/pcbnew/tools/pcb_point_editor.cpp +++ b/pcbnew/tools/pcb_point_editor.cpp @@ -2457,7 +2457,7 @@ int PCB_POINT_EDITOR::movePoint( const TOOL_EVENT& aEvent ) msg = _( "Move Corner" ); } - WX_PT_ENTRY_DIALOG dlg( editFrame, title, _( "X:" ), _( "Y:" ), pt ); + WX_PT_ENTRY_DIALOG dlg( editFrame, title, _( "X:" ), _( "Y:" ), pt, false ); if( dlg.ShowModal() == wxID_OK ) {