Applied patch for hiding statusbar.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26850 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -65,6 +65,8 @@ public:
|
|||||||
long style = wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
|
long style = wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
|
||||||
wxWindowID id = 0,
|
wxWindowID id = 0,
|
||||||
const wxString& name = wxStatusLineNameStr);
|
const wxString& name = wxStatusLineNameStr);
|
||||||
|
|
||||||
|
void SetStatusBar(wxStatusBar *statbar);
|
||||||
#endif // wxUSE_STATUSBAR
|
#endif // wxUSE_STATUSBAR
|
||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
#if wxUSE_TOOLBAR
|
||||||
|
@@ -65,6 +65,8 @@ public:
|
|||||||
long style = wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
|
long style = wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
|
||||||
wxWindowID id = 0,
|
wxWindowID id = 0,
|
||||||
const wxString& name = wxStatusLineNameStr);
|
const wxString& name = wxStatusLineNameStr);
|
||||||
|
|
||||||
|
void SetStatusBar(wxStatusBar *statbar);
|
||||||
#endif // wxUSE_STATUSBAR
|
#endif // wxUSE_STATUSBAR
|
||||||
|
|
||||||
#if wxUSE_TOOLBAR
|
#if wxUSE_TOOLBAR
|
||||||
|
@@ -675,6 +675,16 @@ wxStatusBar* wxFrame::CreateStatusBar(int number,
|
|||||||
return wxFrameBase::CreateStatusBar( number, style, id, name );
|
return wxFrameBase::CreateStatusBar( number, style, id, name );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxFrame::SetStatusBar(wxStatusBar *statbar)
|
||||||
|
{
|
||||||
|
bool hadStatBar = m_frameStatusBar != NULL;
|
||||||
|
|
||||||
|
wxFrameBase::SetStatusBar(statbar);
|
||||||
|
|
||||||
|
if (hadStatBar && !m_frameToolBar)
|
||||||
|
GtkUpdateSize();
|
||||||
|
}
|
||||||
|
|
||||||
void wxFrame::PositionStatusBar()
|
void wxFrame::PositionStatusBar()
|
||||||
{
|
{
|
||||||
if ( !m_frameStatusBar )
|
if ( !m_frameStatusBar )
|
||||||
|
@@ -675,6 +675,16 @@ wxStatusBar* wxFrame::CreateStatusBar(int number,
|
|||||||
return wxFrameBase::CreateStatusBar( number, style, id, name );
|
return wxFrameBase::CreateStatusBar( number, style, id, name );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void wxFrame::SetStatusBar(wxStatusBar *statbar)
|
||||||
|
{
|
||||||
|
bool hadStatBar = m_frameStatusBar != NULL;
|
||||||
|
|
||||||
|
wxFrameBase::SetStatusBar(statbar);
|
||||||
|
|
||||||
|
if (hadStatBar && !m_frameToolBar)
|
||||||
|
GtkUpdateSize();
|
||||||
|
}
|
||||||
|
|
||||||
void wxFrame::PositionStatusBar()
|
void wxFrame::PositionStatusBar()
|
||||||
{
|
{
|
||||||
if ( !m_frameStatusBar )
|
if ( !m_frameStatusBar )
|
||||||
|
Reference in New Issue
Block a user