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
+6 -4
View File
@@ -28,13 +28,15 @@
#include <common.h>
HTML_MESSAGE_BOX::HTML_MESSAGE_BOX( wxWindow* parent, const wxString& aTitle,
wxPoint aPos, wxSize aSize) :
DIALOG_DISPLAY_HTML_TEXT_BASE( parent, wxID_ANY, aTitle, aPos, aSize )
HTML_MESSAGE_BOX::HTML_MESSAGE_BOX( wxWindow* parent, const wxString& aTitle) :
DIALOG_DISPLAY_HTML_TEXT_BASE( parent, wxID_ANY, aTitle )
{
m_htmlWindow->SetLayoutDirection( wxLayout_LeftToRight );
ListClear();
SetSizeInDU( 240, 120 );
// Gives a default logical size (the actual size depends on the display definition)
SetSizeInDU( 240, 150 );
Center();
}