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 do I add an OnMouseWeel event to a control?

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





PostPosted: Tue Aug 12, 2003 5:20 pm    Post subject: How do I add an OnMouseWeel event to a control? Reply with quote



Can I add an OnMouseWeel (and OnMouseWeelUp and Down) to a TImage
derived control?
If so, how do I get it?

Thanks

Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Aug 12, 2003 6:25 pm    Post subject: Re: How do I add an OnMouseWeel event to a control? Reply with quote




"Aldo Marchioni" <aldo_marchioni (AT) iol (DOT) it> wrote

Quote:
Can I add an OnMouseWeel (and OnMouseWeelUp
and Down) to a TImage derived control?

TImage is a TGraphicControl descendant. It has no window, and it cannot
receive input focus.


Gambit




Back to top
Aldo Marchioni
Guest





PostPosted: Wed Aug 13, 2003 10:41 am    Post subject: Re: How do I add an OnMouseWeel event to a control? Reply with quote




Remy Lebeau (TeamB) wrote:

Quote:
"Aldo Marchioni" <aldo_marchioni (AT) iol (DOT) it> wrote in message
news:3F3921D5.5030703 (AT) iol (DOT) it...


Can I add an OnMouseWeel (and OnMouseWeelUp
and Down) to a TImage derived control?



TImage is a TGraphicControl descendant. It has no window, and it cannot
receive input focus.


Gambit



Thanks, I've discovered that ... and I tried to override by puttin my

TImage on a TImageForm, that can receive input focus. Actually, the form
is part of an ActiveX control.

I declared my OnMouseWheel event, and it works ... at times. I mean, the
event is fired not all over the control, but on some areas. A preference
seems to be on the right side (no pun intended).
It does not seems to depend on the stretch and/or resising of the
bitmap, for I have two identical controls, the first fires the event all
over the surface, the second just on a small strip of few pixels on the
right.
Another instance of the same control, no stretched and no resized, works
on a large area on the left and, on occasion, on bottom. The left top
semms dead.
I'm puzzled. What kind of mess was i able to build?
I'm using BCB 5

Thanks

Quote:




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.