 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Jim Sheppard Guest
|
Posted: Fri Aug 20, 2004 3:16 am Post subject: Unwanted mouse capture |
|
|
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
|
Posted: Fri Aug 20, 2004 11:28 am Post subject: Re: Unwanted mouse capture |
|
|
"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
|
Posted: Sun Aug 22, 2004 3:17 pm Post subject: Re: Unwanted mouse capture |
|
|
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 |
|
 |
|
|
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
|
|