Recent

Author Topic: Caret stops blinking after some seconds  (Read 4286 times)

Pascal

  • Hero Member
  • *****
  • Posts: 932
Caret stops blinking after some seconds
« on: August 03, 2018, 10:24:30 am »
I am confused  %)
Synedit caret stops blinking after some seconds if you do nothing. Never noticed before!
Bug or Feature?
laz trunk x64 - fpc trunk i386 (cross x64) - Windows 10 Pro x64 (21H2)

Josh

  • Hero Member
  • *****
  • Posts: 1271
Re: Caret stops blinking after some seconds
« Reply #1 on: August 03, 2018, 10:36:07 am »
Hi

Similar to post.

https://forum.lazarus.freepascal.org/index.php/topic,41631.msg289284.html#msg289284

I to are now getting this. But it is not limited to lazarus other applications are now exhibiting the same.
ie Notepad+++ Settings->Preferences->Default Directory (Edit Box).
It appears more generally on EditBoxes.
In most cases, changes focus back and forth will start the blinking again; but only for 5 seconds or so.

I suspect some win10 update/issue.

Win10 64 bit (fully updated with all latest patches, as of 3rd August 2018) Shows Issue.
Win 7 64 Bit (Full Updated) Does NOT Show Issue.

Not much help to solve the problem.

The best way to get accurate information on the forum is to post something wrong and wait for corrections.

Thaddy

  • Hero Member
  • *****
  • Posts: 14213
  • Probably until I exterminate Putin.
Re: Caret stops blinking after some seconds
« Reply #2 on: August 03, 2018, 10:59:27 am »
Yes, it is a Windows 10+ OS feature. It basically freezes or semi-freezes the application while not in use, to free up the CPU and/or the GPU.
Specialize a type, not a var.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 9794
  • Debugger - SynEdit - and more
    • wiki
Re: Caret stops blinking after some seconds
« Reply #3 on: August 03, 2018, 12:06:31 pm »
If you are using Lazarus trunk, you can force SynEdit to draw its own caret (rather than using the system caret.

Go to Tools > Options > Editor > Colors, find the color entry for Caret, and set it to black (or whatever you want, but black would be what the OS has).

a) This will keep blinking
b) But if you use a srceen reader, then the reader will not know where the caret is.

 

TinyPortal © 2005-2018