[lazarus] Need your thoughts on Caret
Marc Weustink
marc at dommelstein.net
Mon Aug 11 17:22:41 EDT 2003
At 23:38 11-8-2003 +0200, Micha Nelissen wrote:
>Marc Weustink wrote:
>
>>At 20:56 11-8-2003 +0200, Micha Nelissen wrote:
[snip]
>>>If you trace code flow you will see that ShowCaret indeed returns false
>>>most of the time if not always.
>>
>>What is the case, why is it false ?
>>You're not the owner ?
>
>Yes.
??? The doc's are a bit misty in this, but it looks like if you use
ShowCaret(hwnd) you are the owner.
>>It has no shape ?
>
>No, CreateCaret returns true when it's called, but that's only once.
You are creating a Caret with or without bitmap (knowing the SynEdit code i
gues without)
>>It't is pretty good hidden ?
>
>If Hide / Show are balanced well, this should not be a problem.
>
>>>Since this involves more than simply adjusting the win32 interface, I
>>>ask for your thoughts on this.
>>
>>Why adjusting the interface ?
>
>It's the win32 api that is quirky on this, I mean the fact that you have
>to recreate and destroy your caret continously.
Ehm... I think you dont have to worry about that. SynEdit is originally a
Delphi project where synedit itself creates the caret. The win32 interface
has nothing else to do than just passing through the calls. So I don't get
why you are creating carets.
Marc
More information about the Lazarus
mailing list