Solved

Detecting when a control is losing focus

Posted on 2002-06-21
3
182 Views
Last Modified: 2010-04-04
Hi,

I have a little function I want to call when my grid1 is losing focus. How can I do that ???
0
Comment
Question by:sruel
3 Comments
 
LVL 6

Accepted Solution

by:
tecbuilder earned 25 total points
ID: 7099255
Use the grid's OnExit event.
0
 
LVL 17

Expert Comment

by:geobul
ID: 7099260
Hi,
write an OnExit event like this:

procedure TForm1.DBGrid1Exit(Sender: TObject);
begin
  ShowMessage('grid lost focus');
  // call your function here
end;

Regards, Geo
0
 

Author Comment

by:sruel
ID: 7099682
God ! It was a really easy one hein ? !!!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now