 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Veebo Guest
|
Posted: Thu May 19, 2005 11:11 pm Post subject: how to trap cursor inside a control (related to OnMouseMove) |
|
|
Hello,
In BCB6 say you have a TGroupBox and a TButton inside that group
box (GroupBox is TButton's parent). When you click on the right
edge of the button and move the cursor to the right, you can see
the width of the button being increased (and the cursor becomes
of shape <--> = crSizeWE ).
Now, when you have made the button big enough, so that the
hits the right side of the groupbox, now matter how much you
try to move the mouse to the right, the cursor sort of gets
TRAPPED INSIDE THE GROUPBOX and the button width can't be
increased anymore.
Can somebody please tell me what sort of even I am supposed to
write to achieve this sort of "ENTRAPMENT" of the curror in a
given control?
Is it the OnMouseMove event of the Button or OnMouseMove event
of the GroupBox? or some other event?
Please mention 1)Which event and for what control and
2) What should be in the event.
thanks a bunch in advance,
Veebo
|
|
| Back to top |
|
 |
Fishface Guest
|
Posted: Fri May 20, 2005 5:39 am Post subject: Re: how to trap cursor inside a control (related to OnMouseM |
|
|
Veebo wrote:
| Quote: | Can somebody please tell me what sort of even I am supposed to
write to achieve this sort of "ENTRAPMENT" of the curror in a
given control?
|
Check win32.hlp for the indexed topic "Cursor Confinement."
|
|
| Back to top |
|
 |
Veebo Guest
|
Posted: Sat May 21, 2005 1:56 am Post subject: Re: how to trap cursor inside a control (related to OnMouseM |
|
|
that was a perfect suggestion. I tried and it works just
fine.
thanks,
Veebo
| Quote: | Check win32.hlp for the indexed topic "Cursor Confinement."
|
|
|
| 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
|
|