turning off carbon events for testing
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33196 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -2616,6 +2616,28 @@ OSStatus wxMacMLTEClassicControl::DoCreate()
|
|||||||
kTXNSystemDefaultEncoding,
|
kTXNSystemDefaultEncoding,
|
||||||
&m_txn, &m_txnFrameID, NULL ) );
|
&m_txn, &m_txnFrameID, NULL ) );
|
||||||
|
|
||||||
|
TXNCarbonEventInfo cInfo ;
|
||||||
|
|
||||||
|
cInfo.useCarbonEvents = false ;
|
||||||
|
cInfo.filler = 0 ;
|
||||||
|
cInfo.flags = 0 ;
|
||||||
|
cInfo.fDictionary = NULL ;
|
||||||
|
|
||||||
|
TXNControlTag iControlTags[] =
|
||||||
|
{
|
||||||
|
kTXNUseCarbonEvents ,
|
||||||
|
};
|
||||||
|
TXNControlData iControlData[] =
|
||||||
|
{
|
||||||
|
{(UInt32) &cInfo },
|
||||||
|
};
|
||||||
|
|
||||||
|
int toptag = WXSIZEOF( iControlTags ) ;
|
||||||
|
|
||||||
|
verify_noerr( TXNSetTXNObjectControls( m_txn, false , toptag,
|
||||||
|
iControlTags, iControlData )) ;
|
||||||
|
|
||||||
|
|
||||||
#ifdef __WXMAC_OSX__
|
#ifdef __WXMAC_OSX__
|
||||||
TXNRegisterScrollInfoProc( m_txn, gTXNScrollInfoProc, (SInt32) this);
|
TXNRegisterScrollInfoProc( m_txn, gTXNScrollInfoProc, (SInt32) this);
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user