Solved

Detecting when a control is losing focus

Posted on 2002-06-21
3
181 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 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

15 Experts available now in Live!

Get 1:1 Help Now