<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 05/04/2013 12:20, Mehmet Erol
Sanliturk wrote:<br>
</div>
<blockquote
cite="mid:CAOgwaMug83AsBOyyuZr-nk=d3QV7s63MZWs=vbC6vkUrhN3Fow@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>
<div>On each key press , the pressed character appears on the
form area , but caret is not blinking even one time .<br>
</div>
<br>
</div>
</div>
</blockquote>
<br>
Well the below is all I know. You may have to debug it yourself.<br>
<br>
Only other think that comes to mind (but IIRC that is mainly
required for windows)) is that you need to hide the caret at the
start of your paint handler, and show it again at the end of the
pain handler. Also do not Create a new caret in the paint handler
(again Windows).<br>
<br>
Does it blink in the IDE? Then you can try and look at SynEdit to
find out how it is done there. (Search FScreenCaret).<br>
<br>
<br>
<blockquote
cite="mid:CAOgwaMug83AsBOyyuZr-nk=d3QV7s63MZWs=vbC6vkUrhN3Fow@mail.gmail.com"
type="cite"><br>
<div class="gmail_extra">On Fri, Apr 5, 2013 at 4:14 AM, Martin <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:lazarus@mfriebe.de" target="_blank">lazarus@mfriebe.de</a>></span>
wrote:<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
On 05/04/2013 12:04, Mehmet Erol Sanliturk wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
What can be done to make the caret blinking in Unix ?<br>
</blockquote>
<br>
On WIndows the caret is drawn by the OS. This includes
hiding it. On windows (afaik) this is done by inverting
pixel colors. Neither drawing, nor hiding does require the
Control to paint.<br>
<br>
AFAIK on linux, the caret is drawn by the Widgetsetcode
provided by Lazarus. And hiding the caret, is done by
invalidating the area, and therefore only effective, if the
control repaints itself.<br>
<br>
I do not know what goes wrong in your case, but here are
some pointers:<br>
- Check that your control receives regular paint messages,
and that it does actually paint the area. (It will get a
paint messages for a small clip rect only, and must paint
into that clip rect.<br>
- If no paint messages are received I have no idea, but
maybe it is timer related (I haven't looked that deep, but I
guess the caret is triggered by a timer.<br>
</blockquote>
</div>
</div>
</blockquote>
<br>
</body>
</html>