X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/404dfcae70bd419411c185ef7f5eba4b043432a6..fdec65df6d570fb9390fbb9f9c1b04535ec72e83:/src/mac/control.cpp diff --git a/src/mac/control.cpp b/src/mac/control.cpp index c3c915f85b..e2be8c3b92 100644 --- a/src/mac/control.cpp +++ b/src/mac/control.cpp @@ -437,6 +437,9 @@ void wxControl::MacPostControlCreate() SetSize(pos.x, pos.y, new_size.x, new_size.y); UMAShowControl( (ControlHandle) m_macControl ) ; + + SetCursor( *wxSTANDARD_CURSOR ) ; + Refresh() ; } @@ -819,7 +822,6 @@ void wxControl::OnMouseEvent( wxMouseEvent &event ) ControlHandle control ; Point localwhere ; SInt16 controlpart ; - WindowRef window = (WindowRef) MacGetRootWindow() ; localwhere.h = x ; localwhere.v = y ; @@ -840,20 +842,7 @@ void wxControl::OnMouseEvent( wxMouseEvent &event ) if ( event.m_metaDown ) modifiers |= cmdKey ; -/* -#if TARGET_CARBON - control = FindControlUnderMouse( localwhere , window , &controlpart ) ; -#else - controlpart = FindControl( localwhere , window , &control ) ; -#endif -*/ { - /* - if ( AcceptsFocus() && FindFocus() != this ) - { - SetFocus() ; - } - */ control = (ControlHandle) m_macControl ; if ( control && ::IsControlActive( control ) ) {