Auto-Selecting Text In a TEdit(Overwrite Mode)

[ DelphiLand FAQ ]

Posted by PHILIP on April 15, 2004

I have written a routine that works fine for mimicking a currency field with a TEdit field. The only thing that bothers me is that when the field is selected I need the value in the field to be selected for overwrite. This is the only behavior I have not been able to mimick.

Right now when the user enters the field in places the cursor at the end or at the begining of the text values but one has to manually select the text to overwrite it.

Please help. Thank you


Related Articles and Replies:

[ DelphiLand: free Delphi source code, tips, tutorials ]