Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2002-11

New Bug TMemo.SelStart, SelLength, SelText

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michal Bukovjan
to Danie Brink: Both SelStart and SelLength return 0 Regardless, and SelText returns and empty string. As…
Danie Brink wrote 9 lines
Both SelStart and SelLength return 0 Regardless, and SelText returns and empty string. As I remember SelStart always refer to the caret position( keyboard cursor) in a control if there is no sellection or the beginning of a selection. SelLength referes to the length of a selection where 0 indicates no selection. I have no Idea how to fix this, can somone tell me how to do this please.

Fixed in CVS now (both TEdit and TMemo).

Michal

Reply by email

Danie Brink

Both SelStart and SelLength return 0 Regardless, and SelText returns and empty string.
As I remember SelStart always refer to the caret position( keyboard cursor) in a control if there is no sellection or the beginning of a selection. SelLength referes to the length of a selection where 0 indicates no selection.

I have no Idea how to fix this, can somone tell me how to do this please.

Danie Brink

Reply by email