Add size control to HTML_MESSAGE_BOX. Fix incorrect default size of a few dialogs.

Clean code: remove useless code and not used parameters.
This commit is contained in:
jean-pierre charras
2018-01-11 10:48:52 +01:00
parent 7e6a6540c8
commit 47dfabc6c8
10 changed files with 40 additions and 36 deletions
+3 -2
View File
@@ -482,8 +482,9 @@ void DisplayHotkeyList( EDA_BASE_FRAME* aFrame, struct EDA_HOTKEY_CONFIG* aDescL
// Create a non modal dialog, which shows the list of hotkeys until dismissed
// but does not block the parent window
HTML_MESSAGE_BOX *dlg = new HTML_MESSAGE_BOX( aFrame, _( "Hotkeys List" ),
wxDefaultPosition, wxSize( 340, 750 ) );
HTML_MESSAGE_BOX *dlg = new HTML_MESSAGE_BOX( aFrame, _( "Hotkeys List" ) );
dlg->SetDialogSizeInDU( 300, 250 );
dlg->AddHTML_Text( msg );
dlg->Show( true );
}