combobox and textctrl fixes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28200 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2387,12 +2387,16 @@ void wxWindowMac::OnSetFocus(wxFocusEvent& event)
|
||||
|
||||
if ( MacGetTopLevelWindow() && m_peer->NeedsFocusRect() )
|
||||
{
|
||||
wxWindowDC dc(this) ;
|
||||
wxMacPortSetter helper(&dc) ;
|
||||
wxMacWindowStateSaver sv( this ) ;
|
||||
// wxWindowDC dc(this) ;
|
||||
// wxMacPortSetter helper(&dc) ;
|
||||
|
||||
int w , h ;
|
||||
int x , y ;
|
||||
x = y = 0 ;
|
||||
MacWindowToRootWindow( &x , &y ) ;
|
||||
GetSize( &w , &h ) ;
|
||||
Rect rect = { dc.m_macLocalOrigin.y , dc.m_macLocalOrigin.x , h + dc.m_macLocalOrigin.y , w + dc.m_macLocalOrigin.x } ;
|
||||
Rect rect = {y , x , h + y , w + x } ;
|
||||
|
||||
if ( event.GetEventType() == wxEVT_SET_FOCUS )
|
||||
DrawThemeFocusRect( &rect , true ) ;
|
||||
|
Reference in New Issue
Block a user