cursor is hidden after using rve.scrollTo
Posted: Tue May 13, 2008 11:14 am
Hello,
caret is not shown after pressing "pGoToLineClick".
Background:
if have selected a memo-line and put it's y-pos into a variable named "rveYpos" (pMarkYposClick).
Now I scroll in memo and after a time I want to go back to the position of "rveYpos" (pGoToPosClick).
All runs fine. Only caret (Schreibmarke) is hidden.
What's to do to show caret ?
After clicking into memo caret appears (where mouse-cursor hit memo).
Jürgen
Private
rveYpos: integer;
...
procedure TForm1.pMarkYposClick(Sender: TObject);
var x: integer;
begin
rve.GetItemCoords(rve.CurItemNo,x,rveYpos);
end;
procedure TForm1.pGoToPosClick(Sender: TObject);
begin
rve.scrollTo(rveYpos);
//rve.Reformat;
rve.setfocus; //caret doesn't appear
end;
caret is not shown after pressing "pGoToLineClick".
Background:
if have selected a memo-line and put it's y-pos into a variable named "rveYpos" (pMarkYposClick).
Now I scroll in memo and after a time I want to go back to the position of "rveYpos" (pGoToPosClick).
All runs fine. Only caret (Schreibmarke) is hidden.
What's to do to show caret ?
After clicking into memo caret appears (where mouse-cursor hit memo).
Jürgen
Private
rveYpos: integer;
...
procedure TForm1.pMarkYposClick(Sender: TObject);
var x: integer;
begin
rve.GetItemCoords(rve.CurItemNo,x,rveYpos);
end;
procedure TForm1.pGoToPosClick(Sender: TObject);
begin
rve.scrollTo(rveYpos);
//rve.Reformat;
rve.setfocus; //caret doesn't appear
end;