i want to change color of edit control when enter edit and when exit from edit, i want do this by single function i dont want to add code for each edit in enter event or on exit event
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
yes like David and kobik said you just need to create event handlers for OnEnter and OnExit and assign the controls you wish to use them
for example
Add two TEdit’s to your form and in the constructor of the form do the following
Now Create the Enter and Exit event handlers like so
Thats it.