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 

how to trap cursor inside a control (related to OnMouseMove)

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





PostPosted: Thu May 19, 2005 11:11 pm    Post subject: how to trap cursor inside a control (related to OnMouseMove) Reply with quote




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





PostPosted: Fri May 20, 2005 5:39 am    Post subject: Re: how to trap cursor inside a control (related to OnMouseM Reply with quote



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





PostPosted: Sat May 21, 2005 1:56 am    Post subject: Re: how to trap cursor inside a control (related to OnMouseM Reply with quote




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