 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Pascal Guest
|
Posted: Sun Nov 16, 2003 3:18 am Post subject: what message will TMyControl get if I click on the outside p |
|
|
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
|
Posted: Sun Nov 16, 2003 7:35 am Post subject: Re: what message will TMyControl get if I click on the outsi |
|
|
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
|
Posted: Sun Nov 16, 2003 9:51 am Post subject: Re: what message will TMyControl get if I click on the outsi |
|
|
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
|
Posted: Sun Nov 16, 2003 10:08 am Post subject: Re: what message will TMyControl get if I click on the outsi |
|
|
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 |
|
 |
|
|
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
|
|