#include "wx/dc.h"
#include "wx/button.h"
#include "wx/menu.h"
+ #include "wx/settings.h"
+ #include "wx/msgdlg.h"
#endif
#ifdef __DARWIN__
#include <stat.h>
#endif
-#include "wx/msgdlg.h"
-
#if wxUSE_STD_IOSTREAM
#if wxUSE_IOSTREAMH
#include <fstream.h>
#endif
#include "wx/toplevel.h"
-#include "wx/settings.h"
#include "wx/filefn.h"
#include "wx/sysopt.h"
virtual bool SetupCursor( const wxPoint& pt )
{ return false ; }
-
+
virtual void Clear() ;
virtual bool CanUndo() const;
virtual void Undo() ;
const wxPoint& pos,
const wxSize& size, long style ) ;
~wxMacMLTEHIViewControl() ;
-
+
virtual OSStatus SetFocus( ControlFocusPart focusPart ) ;
virtual bool HasFocus() const ;
virtual void SetBackground( const wxBrush &brush) ;
OSStatus result = eventNotHandledErr ;
wxMacUnicodeTextControl* focus = (wxMacUnicodeTextControl*) data ;
wxMacCarbonEvent cEvent( event ) ;
-
+
switch ( GetEventKind( event ) )
{
case kEventControlSetFocusPart :
default:
break ;
}
-
+
return result ;
}
static pascal OSStatus wxMacUnicodeTextControlEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
{
OSStatus result = eventNotHandledErr ;
-
+
switch ( GetEventClass( event ) )
{
case kEventClassControl :
result = wxMacUnicodeTextControlControlEventHandler( handler , event , data ) ;
break ;
-
+
default :
break ;
}
verify_noerr( GetData<ControlEditTextSelectionRec>( 0, kControlEditTextSelectionTag, &sel ) ) ;
else
sel = m_selection ;
-
+
if ( from )
*from = sel.selStart ;
if ( to )
if ((from == -1) && (to == -1))
{
from = 0 ;
- to = textLength ;
+ to = textLength ;
}
else
{
| kTXNSupportSpellCheckCommandUpdating
| kTXNSupportFontCommandProcessing
| kTXNSupportFontCommandUpdating;
-
+
TXNSetCommandEventSupport( m_txn , options ) ;
}
}
if ( style.HasFont() )
{
const wxFont &font = style.GetFont() ;
-
+
#if 0 // old version
Str255 fontName = "\pMonaco" ;
SInt16 fontSize = 12 ;
#if MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_2
// tiger multi-line textcontrols with no CR in the entire content
-// don't scroll automatically, so we need a hack.
+// don't scroll automatically, so we need a hack.
// This attempt only works 'before' the key (ie before CallNextEventHandler)
// is processed, thus the scrolling always occurs one character too late, but
// better than nothing ...
{
{ kEventClassTextInput, kEventTextInputUnicodeForKeyEvent } ,
} ;
-
+
static pascal OSStatus wxMacUnicodeTextEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
{
OSStatus result = eventNotHandledErr ;
wxMacMLTEHIViewControl* focus = (wxMacMLTEHIViewControl*) data ;
-
+
switch ( GetEventKind( event ) )
{
case kEventTextInputUnicodeForKeyEvent :
default:
break ;
}
-
+
return result ;
}
static pascal OSStatus wxMacTextControlEventHandler( EventHandlerCallRef handler , EventRef event , void *data )
{
OSStatus result = eventNotHandledErr ;
-
+
switch ( GetEventClass( event ) )
{
case kEventClassTextInput :
result = wxMacUnicodeTextEventHandler( handler , event , data ) ;
break ;
-
+
default :
break ;
}