corrected hiding/showing of native mac controls

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9440 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-02-28 12:23:17 +00:00
parent 19ff2a7bd5
commit c809f3be86
8 changed files with 128 additions and 38 deletions

View File

@@ -32,6 +32,7 @@
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/tooltip.h"
#include "wx/statusbr.h"
// TODO remove the line below, just for lookup-up convenience CS
#include "wx/window.h"
@@ -194,7 +195,7 @@ bool wxWindow::Create(wxWindow *parent, wxWindowID id,
m_width = WidthDefault( size.x );
m_height = HeightDefault( size.y ) ;
if ( ! IsKindOf( CLASSINFO ( wxControl ) ) )
if ( ! IsKindOf( CLASSINFO ( wxControl ) ) && ! IsKindOf( CLASSINFO( wxStatusBar ) ) )
{
MacCreateScrollBars( style ) ;
}
@@ -584,7 +585,8 @@ void wxWindow::DoSetSize(int x, int y, int width, int height, int sizeFlags)
if ( doResize )
::SizeWindow(m_macWindowData->m_macWindow, m_width, m_height , true);
// the OS takes care of invalidating and erasing
// the OS takes care of invalidating and erasing the new area
// we have erased the old one
if ( IsKindOf( CLASSINFO( wxFrame ) ) )
{
@@ -710,6 +712,18 @@ void wxWindow::MacSuperShown( bool show )
}
}
bool wxWindow::MacIsReallyShown() const
{
bool status = m_isShown ;
wxWindow * win = this ;
while ( status && win->m_parent != NULL )
{
win = win->m_parent ;
status = win->m_isShown ;
}
return status ;
}
int wxWindow::GetCharHeight() const
{
wxClientDC dc ( (wxWindow*)this ) ;