GMcConville
Programmer
Any one have any idea on how to select an area of text in a TEdit and have the cursor at the beginning of the selection.
eg:
TEdit.Text := 'Delphi Rules';
TEdit.SelStart := 7;
TEdit.SelLength := 5;
TEdit should now display 'Delphi Rules' with the last word selected (or something close to that) and the cursor at the end of the text. But I need the cursor at the beginning of the selection, just before the letter 'R'.
Any ideas?
Grant
eg:
TEdit.Text := 'Delphi Rules';
TEdit.SelStart := 7;
TEdit.SelLength := 5;
TEdit should now display 'Delphi Rules' with the last word selected (or something close to that) and the cursor at the end of the text. But I need the cursor at the beginning of the selection, just before the letter 'R'.
Any ideas?
Grant