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 

Unwanted mouse capture

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development)
View previous topic :: View next topic  
Author Message
Jim Sheppard
Guest





PostPosted: Fri Aug 20, 2004 3:16 am    Post subject: Unwanted mouse capture Reply with quote



Hello:
While testing a component, I discovered that if I double-click on the
control, it captures the mouse. I definitely do not want this to happen.
The problem occurs when I have set up to capture the WM_LBUTTONUP message
whether or not I have a handler. I also use the DOWN, MOVE and LEAVE
messages with no problem. I had to add ReleaseCapture() at the end of the
UP handler to avoid the problem. To say the least, this surprised me. Is
this behavior to be expected? Also, is this an ok way to work around this
type of problem?

Thanks.
Jim


Back to top
Todd Brylski
Guest





PostPosted: Fri Aug 20, 2004 11:28 am    Post subject: Re: Unwanted mouse capture Reply with quote



"Jim Sheppard" <jfshep (AT) cox (DOT) net> wrote

Quote:
Hello:
While testing a component, I discovered that if I double-click on the
control, it captures the mouse. I definitely do not want this to happen.

Remove csCaptureMouse from ControlStyle.

Todd



Back to top
Jim Sheppard
Guest





PostPosted: Sun Aug 22, 2004 3:17 pm    Post subject: Re: Unwanted mouse capture Reply with quote



Thanks for the info. I wasn't aware that csCaptureMouse is initially set.
This also seems to work. Since this way is more direct, I have switched to
it. I am still puzzled why I haven't noticed this for other components and,
for this component, only for the WM_LBUTTONUP message. Anyway, whatever
works. Thanks again.

"Todd Brylski" <tbrylski (AT) yyaahhoooo (DOT) com> wrote

Quote:
"Jim Sheppard" <jfshep (AT) cox (DOT) net> wrote

Hello:
While testing a component, I discovered that if I double-click on the
control, it captures the mouse. I definitely do not want this to
happen.

Remove csCaptureMouse from ControlStyle.

Todd





Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (VCL Components Development) 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.