SynEdit: Fixed show/hide caret while not focused. Issue #0017599

git-svn-id: trunk@34029 -
This commit is contained in:
martin 2011-12-07 18:27:31 +00:00
parent 534feafb8e
commit 56f08e8572

View File

@ -7563,8 +7563,11 @@ begin
// (un)register HWND as drop target
if (eoDropFiles in ChangedOptions) and not (csDesigning in ComponentState) and HandleAllocated then
; // ToDo DragAcceptFiles
if (eoPersistentCaret in ChangedOptions) and HandleAllocated then
if (eoPersistentCaret in ChangedOptions) and HandleAllocated then begin
UpdateCaret;
if not Focused then
FScreenCaret.Visible := (eoPersistentCaret in FOptions);
end;
if (eoShowSpecialChars in ChangedOptions) and HandleAllocated then
Invalidate;
fMarkupSpecialChar.Enabled := (eoShowSpecialChars in fOptions);