Added GetMainWidget() to fix bug that was causing crashes under wxMOTIF.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@3683 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -46,6 +46,11 @@ public:
|
|||||||
long style = wxLI_HORIZONTAL,
|
long style = wxLI_HORIZONTAL,
|
||||||
const wxString &name = wxStaticTextNameStr );
|
const wxString &name = wxStaticTextNameStr );
|
||||||
|
|
||||||
|
// it's necessary to override this wxWindow function because we
|
||||||
|
// will want to return the main widget for m_statbox
|
||||||
|
//
|
||||||
|
WXWidget GetMainWidget() const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
// we implement the static line using a static box
|
// we implement the static line using a static box
|
||||||
wxStaticBox *m_statbox;
|
wxStaticBox *m_statbox;
|
||||||
|
@@ -59,3 +59,9 @@ bool wxStaticLine::Create( wxWindow *parent,
|
|||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
WXWidget wxStaticLine::GetMainWidget() const
|
||||||
|
{
|
||||||
|
return m_statbox->GetMainWidget();
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user