Hello,
has anyone successfully used the lclintf caret implementation in Linux? (A caret is a blinking cursor.) A simple test program based on a simple form with two buttons for creating and destroying a caret is this:
procedure TForm1.Button1Click(Sender: TObject);
begin
lclintf.CreateCaret(Handle,0,15,5);
lclintf.SetCaretPosEx(Handle,150,100);
// alternatively lclintf.SetCaretPos (150,100);
lclintf.ShowCaret(Handle);
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
lclintf.HideCaret(Handle);
lclintf.DestroyCaret(Handle);
end;
In Win32, the code works fine, in MacOSX, it also works, but in Linux (Ubuntu), the caret is not shown.
P.S. In MacOSX, it seems that the Y coordinate in SetCaretPos has to be ClientHeight-Y, I will report that in the bugtracker.
Martin