Solved

Detecting when a control is losing focus

Posted on 2002-06-21
3
187 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

724 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