BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

what message will TMyControl get if I click on the outside p

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing
View previous topic :: View next topic  
Author Message
Pascal
Guest





PostPosted: Sun Nov 16, 2003 3:18 am    Post subject: what message will TMyControl get if I click on the outside p Reply with quote



What message will TMyControl get when I click on the place outside
TMyControl?

I mean I know TMyControl will get WM_KILLFOCUS message if I click on another
control, but if I click on the outside place, the main form for example,
what message will TMyControl get?

Thanks
--Pascal


Back to top
Mike Lischke
Guest





PostPosted: Sun Nov 16, 2003 7:35 am    Post subject: Re: what message will TMyControl get if I click on the outsi Reply with quote



Pascal wrote:

Quote:
I mean I know TMyControl will get WM_KILLFOCUS message if I click on another
control, but if I click on the outside place, the main form for example,
what message will TMyControl get?

Usually nothing unless the new control grabs focus. In this case you will get the WM_KILLFOCUS message and that's it from Windows' side. The VCL may send you an CM_LEAVE message too.

Mike
--
www.delphi-gems.com
www.delphi-unicode.net
www.lischke-online.de

Back to top
Jirayu
Guest





PostPosted: Sun Nov 16, 2003 9:51 am    Post subject: Re: what message will TMyControl get if I click on the outsi Reply with quote



Oh, I found it under CM_CancelMode;

procedure CMCancelMode(var Message: TCMCancelMode); message CM_CANCELMODE;

I ask the same question as you did but in a different ways. Your
question
leads me to the solution. Thank you.

Jirayu

"Pascal" <dontreply (AT) openfind (DOT) com> wrote

Quote:
What message will TMyControl get when I click on the place outside
TMyControl?

I mean I know TMyControl will get WM_KILLFOCUS message if I click on
another
control, but if I click on the outside place, the main form for example,
what message will TMyControl get?

Thanks
--Pascal





Back to top
Pascal
Guest





PostPosted: Sun Nov 16, 2003 10:08 am    Post subject: Re: what message will TMyControl get if I click on the outsi Reply with quote

CM_CANCELMODE is right.

No, thank YOU.

---pascal

"Jirayu" <jirayu (AT) sunncity (DOT) com> ¼¶¼g©ó¶l¥ó·s»D
:3fb7489e (AT) newsgroups (DOT) borland.com...
Quote:
Oh, I found it under CM_CancelMode;

procedure CMCancelMode(var Message: TCMCancelMode); message CM_CANCELMODE;

I ask the same question as you did but in a different ways. Your
question
leads me to the solution. Thank you.

Jirayu

"Pascal" <dontreply (AT) openfind (DOT) com> wrote in message
news:3fb6ec8a (AT) newsgroups (DOT) borland.com...
What message will TMyControl get when I click on the place outside
TMyControl?

I mean I know TMyControl will get WM_KILLFOCUS message if I click on
another
control, but if I click on the outside place, the main form for
example,
what message will TMyControl get?

Thanks
--Pascal







Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Writing All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.