Start on Get/SetStyle support for OS X Cocoa wxTextCtrl.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@62531 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Kevin Ollivier
2009-11-01 00:58:04 +00:00
parent 19b4098602
commit 16671f229a
5 changed files with 55 additions and 0 deletions

View File

@@ -373,6 +373,11 @@ wxSize wxTextCtrl::DoGetBestSize() const
return wxSize(wText, hText);
}
bool wxTextCtrl::GetStyle(long position, wxTextAttr& style)
{
return GetTextPeer()->GetStyle(position, style);
}
// ----------------------------------------------------------------------------
// Undo/redo
// ----------------------------------------------------------------------------
@@ -724,6 +729,12 @@ bool wxTextCtrl::MacSetupCursor( const wxPoint& pt )
// implementation base class
// ----------------------------------------------------------------------------
bool wxTextWidgetImpl::GetStyle(long WXUNUSED(position),
wxTextAttr& WXUNUSED(style))
{
return false;
}
void wxTextWidgetImpl::SetStyle(long WXUNUSED(start),
long WXUNUSED(end),
const wxTextAttr& WXUNUSED(style))