return result ;
}
-pascal OSStatus wxMacUnicodeTextEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
+WXDLLEXPORT pascal OSStatus wxMacUnicodeTextEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
{
OSStatus result = eventNotHandledErr ;
wxWindowMac* focus = (wxWindowMac*) data ;
I don't have time to look into that right now.
-- CL
*/
- if ( wxTheApp->MacSendCharEvent(
- focus , message , 0 , when , 0 , 0 , uniChars[pos] ) )
+ if ( wxTheApp->MacSendCharEvent( focus , message , 0 , when , uniChars[pos] ) )
{
result = noErr ;
}
case kEventTextInputUnicodeForKeyEvent :
{
UInt32 keyCode, modifiers ;
- Point point ;
EventRef rawEvent ;
unsigned char charCode ;
GetEventParameter( rawEvent, kEventParamKeyMacCharCodes, typeChar, NULL, sizeof(char), NULL, &charCode );
GetEventParameter( rawEvent, kEventParamKeyCode, typeUInt32, NULL, sizeof(UInt32), NULL, &keyCode );
GetEventParameter( rawEvent, kEventParamKeyModifiers, typeUInt32, NULL, sizeof(UInt32), NULL, &modifiers );
- GetEventParameter( rawEvent, kEventParamMouseLocation, typeQDPoint, NULL, sizeof(Point), NULL, &point );
UInt32 message = (keyCode << 8) + charCode;
WXEVENTHANDLERCALLREF formerHandler = wxTheApp->MacGetCurrentEventHandlerCallRef() ;
wxTheApp->MacSetCurrentEvent( event , handler ) ;
- if ( wxTheApp->MacSendCharEvent(
- focus , message , modifiers , when , point.h , point.v , uniChars[pos] ) )
+ if ( wxTheApp->MacSendCharEvent( focus , message , modifiers , when , uniChars[pos] ) )
{
result = noErr ;
}
void wxMacControl::SetDrawingEnabled( bool enable )
{
- HIViewSetDrawingEnabled( m_controlRef , enable );
+ if ( enable )
+ {
+ HIViewSetDrawingEnabled( m_controlRef , true );
+ HIViewSetNeedsDisplay( m_controlRef, true);
+ }
+ else
+ {
+ HIViewSetDrawingEnabled( m_controlRef , false );
+ }
}
void wxMacControl::GetRectInWindowCoords( Rect *r )