we can avoid 2-step construction now that setting wxDIALOG_EX_CONTEXTHELP after window creation works too
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39680 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -677,14 +677,12 @@ BEGIN_EVENT_TABLE(MyModalDialog, wxDialog)
|
|||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
MyModalDialog::MyModalDialog(wxWindow *parent)
|
MyModalDialog::MyModalDialog(wxWindow *parent)
|
||||||
: wxDialog()
|
: wxDialog(parent, wxID_ANY, wxString(_T("Modal dialog")))
|
||||||
{
|
{
|
||||||
// Add the context-sensitive help button on the caption for MSW
|
// Add the context-sensitive help button on the caption for the platforms
|
||||||
#ifdef __WXMSW__
|
// which support it (currently MSW only)
|
||||||
SetExtraStyle(wxDIALOG_EX_CONTEXTHELP);
|
SetExtraStyle(wxDIALOG_EX_CONTEXTHELP);
|
||||||
#endif
|
|
||||||
|
|
||||||
wxDialog::Create(parent, wxID_ANY, wxString(_T("Modal dialog")));
|
|
||||||
|
|
||||||
wxBoxSizer *sizerTop = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer *sizerTop = new wxBoxSizer(wxVERTICAL);
|
||||||
wxBoxSizer *sizerRow = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer *sizerRow = new wxBoxSizer(wxHORIZONTAL);
|
||||||
|
Reference in New Issue
Block a user