avoiding caret in all textctrls in 10.2

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2005-03-30 16:33:37 +00:00
parent 5576edf8d8
commit 8e15e610d1

View File

@@ -1532,7 +1532,10 @@ void wxMacMLTEControl::AdjustCreationAttributes( const wxColour &background, boo
iControlTags, iControlData )) ; iControlTags, iControlData )) ;
// setting the default font // setting the default font
// under 10.2 this causes a visible caret, therefore we avoid it
if ( UMAGetSystemVersion() >= 0x1030 )
{
Str255 fontName ; Str255 fontName ;
SInt16 fontSize ; SInt16 fontSize ;
Style fontStyle ; Style fontStyle ;
@@ -1549,6 +1552,7 @@ void wxMacMLTEControl::AdjustCreationAttributes( const wxColour &background, boo
verify_noerr( TXNSetTypeAttributes (m_txn, sizeof( typeAttr ) / sizeof(TXNTypeAttributes) , typeAttr, verify_noerr( TXNSetTypeAttributes (m_txn, sizeof( typeAttr ) / sizeof(TXNTypeAttributes) , typeAttr,
kTXNStartOffset, kTXNStartOffset,
kTXNEndOffset) ); kTXNEndOffset) );
}
if ( m_windowStyle & wxTE_PASSWORD ) if ( m_windowStyle & wxTE_PASSWORD )
{ {