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:
@@ -51,6 +51,10 @@ public:
|
||||
//
|
||||
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:
|
||||
// we implement the static line using a static box
|
||||
wxStaticBox *m_statbox;
|
||||
|
@@ -65,3 +65,14 @@ WXWidget wxStaticLine::GetMainWidget() const
|
||||
{
|
||||
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