Added a wxRichTextCtrl-specific caret implementation in case of need

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53409 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2008-04-29 09:10:32 +00:00
parent 0b822969a6
commit 1c13f06e4e
3 changed files with 256 additions and 16 deletions

View File

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