Recent

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

Pascal

  • Hero Member
  • *****
  • Posts: 829
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 - fpc trunk 32bit - Windows 10 Pro x64 (1803)

josh

  • Hero Member
  • *****
  • Posts: 747
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.

Development Installation Lazarus 1.3, FPC 2.7.1,Windows 7/8 32/64, OSX, *nix

Test Environment Lazarus & FPC Trunk on Windows and OSX (Cocoa Mainly on OSX). Testing also Crosscompile windows to OSX.. 
Any posts made from 2015 will be based on Lazarus Trunk.

Thaddy

  • Hero Member
  • *****
  • Posts: 8458
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.
Read the manuals and if you are a professional get a proper education in computer science. Makes the forum a lot cleaner.

Martin_fr

  • Administrator
  • Hero Member
  • *
  • Posts: 5515
    • 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.