Solved

Detecting when a control is losing focus

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

Independent Software Vendors: 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

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 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