sorry, here I am with same question again ...
... but it seems, that there is absolute no solution, or ???
How to get the correct Cursor-position in TEdit, even
some Text is selected ?
I've got 3 answers for my postings yesterday.
All telling me to use SelStart or SelLength ...
but ..
In this ...
... SelectionBegin is not delivering the correct cursor-position,
if I am marking/selecting the Text with the mouse from left to right or
even the whole Text is marked/selected.
Var
SelectionBegin, SelectionLength : integer;
Begin
SelectionBegin := MyEdit.SelStart;
SelectionLength := MyEdit.SelLength;
MyLabel.Caption := 'Start : '+IntToStr(SelectionBegin) + ' Length:
'+IntToStr(SelectionLength);
End;
Did I really get in a dead-end of Delphi with this simple and elementary
Needs ?
TCustomMemo has CaretPos, why not TCustomEdit ?
Olly
--
Paul Mason
-------------------------------------
Paul's Delphi Page
http://www.geocities.com/pauldelphi
pauld...@nospam.yahoo.com
-------------------------------------
Remove the "nospam." bit
"Oliver Kessler" <o.Ke...@sodexho-pass.de> wrote in message
news:3a260122_1@dnews...
Please do not post your question to several of the newsgroups at once, it
is against the forum guidelines (see http://www.borland.com/newsgroups/)
and just wastes resources (both server and human, somebody might spend
time on answering a post that has already been answered in another
newsgroup).
Peter Below (TeamB) 10011...@compuserve.com)
No e-mail responses, please, unless explicitly requested!
will follow from now on
Olly
Peter Below (TeamB) <10011...@compuXXserve.com> schrieb in im
Newsbeitrag: VA.000064e...@antispam.compuserve.com...