draw the focus rect ourselves

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31298 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2005-01-09 05:58:58 +00:00
parent ae190e6447
commit eda3f2b454

View File

@@ -300,6 +300,7 @@ public :
const wxSize& size, long style ) ;
~wxMacMLTEClassicControl() ;
virtual void VisibilityChanged(bool shown) ;
virtual bool NeedsFocusRect() const;
protected :
OSStatus DoCreate();
public :
@@ -2067,7 +2068,7 @@ static void TPRedrawFocusOutline(STPTextPaneVars *varsp) {
if (varsp->fFocusDrawState != (varsp->fIsActive && varsp->fInFocus))
{
varsp->fFocusDrawState = (varsp->fIsActive && varsp->fInFocus);
DrawThemeFocusRect(&varsp->fRFocusOutline, varsp->fFocusDrawState);
// DrawThemeFocusRect(&varsp->fRFocusOutline, varsp->fFocusDrawState);
}
}
@@ -2411,6 +2412,11 @@ void wxMacMLTEClassicControl::VisibilityChanged(bool shown)
InvalWindowRect( GetControlOwner( m_controlRef ) , &((STPTextPaneVars *)m_macTXNvars)->fRBounds ) ;
}
bool wxMacMLTEClassicControl::NeedsFocusRect() const
{
return true;
}
OSStatus wxMacMLTEClassicControl::DoCreate()
{
Rect bounds;