#include "wx/control.h"
#include "wx/panel.h"
#include "wx/app.h"
+#include "wx/dc.h"
#include "wx/notebook.h"
#include "wx/tabctrl.h"
#include "wx/radiobox.h"
ControlHandle container = GetParent()->MacGetContainerForEmbedding() ;
wxASSERT_MSG( container != NULL , "No valid mac container control" ) ;
::UMAEmbedControl( m_macControl , container ) ;
+ m_macControlIsShown = true ;
MacAdjustControlRect() ;
wxAssociateControlWithMacControl( m_macControl , this ) ;
}
{
if ( !show )
{
- ::UMAHideControl( m_macControl ) ;
+ if ( m_macControlIsShown )
+ {
+ ::UMAHideControl( m_macControl ) ;
+ m_macControlIsShown = false ;
+ }
}
else
{
- if ( m_isShown )
+ if ( MacIsReallyShown() && !m_macControlIsShown )
+ {
::UMAShowControl( m_macControl ) ;
+ m_macControlIsShown = true ;
+ }
}
}
if ( m_macControl )
{
- if ( show )
- ::UMAShowControl( m_macControl ) ;
+ if ( !show )
+ {
+ if ( m_macControlIsShown )
+ {
+ ::UMAHideControl( m_macControl ) ;
+ m_macControlIsShown = false ;
+ }
+ }
else
- ::UMAHideControl( m_macControl ) ;
+ {
+ if ( MacIsReallyShown() && !m_macControlIsShown )
+ {
+ ::UMAShowControl( m_macControl ) ;
+ m_macControlIsShown = true ;
+ }
+ }
}
return TRUE ;
}
controlpart = FindControl( localwhere , window , &control ) ;
{
+ /*
if ( AcceptsFocus() && FindFocus() != this )
{
SetFocus() ;
}
+ */
if ( control && UMAIsControlActive( control ) )
{
{