mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-05 20:38:15 +02:00
SynEdit: Fixed show/hide caret while not focused. Issue #0017599
git-svn-id: trunk@34029 -
This commit is contained in:
parent
534feafb8e
commit
56f08e8572
@ -7563,8 +7563,11 @@ begin
|
|||||||
// (un)register HWND as drop target
|
// (un)register HWND as drop target
|
||||||
if (eoDropFiles in ChangedOptions) and not (csDesigning in ComponentState) and HandleAllocated then
|
if (eoDropFiles in ChangedOptions) and not (csDesigning in ComponentState) and HandleAllocated then
|
||||||
; // ToDo DragAcceptFiles
|
; // ToDo DragAcceptFiles
|
||||||
if (eoPersistentCaret in ChangedOptions) and HandleAllocated then
|
if (eoPersistentCaret in ChangedOptions) and HandleAllocated then begin
|
||||||
UpdateCaret;
|
UpdateCaret;
|
||||||
|
if not Focused then
|
||||||
|
FScreenCaret.Visible := (eoPersistentCaret in FOptions);
|
||||||
|
end;
|
||||||
if (eoShowSpecialChars in ChangedOptions) and HandleAllocated then
|
if (eoShowSpecialChars in ChangedOptions) and HandleAllocated then
|
||||||
Invalidate;
|
Invalidate;
|
||||||
fMarkupSpecialChar.Enabled := (eoShowSpecialChars in fOptions);
|
fMarkupSpecialChar.Enabled := (eoShowSpecialChars in fOptions);
|
||||||
|
Loading…
Reference in New Issue
Block a user