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.
This commit is contained in:
jean-pierre charras
2025-04-03 13:19:20 +02:00
parent 40058ebe80
commit f8ec23db00
8 changed files with 879 additions and 765 deletions
+1 -1
View File
@@ -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 )
{