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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user