Added a wxRichTextCtrl-specific caret implementation in case of need

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@53408 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-04-29 09:10:05 +00:00
parent 2b91dd9e34
commit a6fb54ec71
3 changed files with 261 additions and 20 deletions

View File

@@ -7073,6 +7073,9 @@ void wxRichTextAction::UpdateAppearance(long caretPosition, bool sendUpdateEvent
m_ctrl->Refresh(false);
}
#if wxRICHTEXT_USE_OWN_CARET
m_ctrl->PositionCaret();
#endif
if (sendUpdateEvent)
m_ctrl->SendTextUpdatedEvent();
}
@@ -7222,6 +7225,9 @@ bool wxRichTextImage::GetRangeSize(const wxRichTextRange& range, wxSize& size, i
if (!range.IsWithin(GetRange()))
return false;
if (!m_image.Ok())
((wxRichTextImage*) this)->LoadFromBlock();
#if wxRICHTEXT_USE_PARTIAL_TEXT_EXTENTS
if (g_UseGlobalPartialTextExtents)
{