Added DoSetSize and DoMoveWindow to generic wxStaticLine.
Now it works with sizers. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16294 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -50,7 +50,11 @@ public:
|
|||||||
// will want to return the main widget for m_statbox
|
// will want to return the main widget for m_statbox
|
||||||
//
|
//
|
||||||
WXWidget GetMainWidget() const;
|
WXWidget GetMainWidget() const;
|
||||||
|
|
||||||
|
// override wxWindow methods to make things work
|
||||||
|
virtual void DoSetSize(int x, int y, int width, int height,
|
||||||
|
int sizeFlags = wxSIZE_AUTO);
|
||||||
|
virtual void DoMoveWindow(int x, int y, int width, int height);
|
||||||
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;
|
||||||
|
@@ -65,3 +65,14 @@ WXWidget wxStaticLine::GetMainWidget() const
|
|||||||
{
|
{
|
||||||
return m_statbox->GetMainWidget();
|
return m_statbox->GetMainWidget();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxStaticLine::DoSetSize(int x, int y, int width, int height,
|
||||||
|
int sizeFlags = wxSIZE_AUTO)
|
||||||
|
{
|
||||||
|
m_statbox->SetSize(x, y, width, height, sizeFlags);
|
||||||
|
}
|
||||||
|
|
||||||
|
void wxStaticLine::DoMoveWindow(int x, int y, int width, int height)
|
||||||
|
{
|
||||||
|
m_statbox->SetSize(x, y, width, height);
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user