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:
@@ -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 )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user