Another TValueListEditor / TCustomGrid question:

Another TValueListEditor / TCustomGrid question:

When a cell gets focus in the VLE, the logic usually selects the text in the cell.

We want to have no text selected and have the cursor positioned at the right side, so that when a new cell is selected and gets focus, the user can just start typing and the keys are added to the end of the existing text in the cell.

I get hold of the TInplaceEditor (inherited from TCustomGrid), and then set SelStart := SelLength, then SelLength := 0, which should do what's wanted.

But no matter what I do, nothing seems to affect the VLE's edit box.

How can I make this do what I want?

Comments