 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Aldo Marchioni Guest
|
Posted: Tue Aug 12, 2003 5:20 pm Post subject: How do I add an OnMouseWeel event to a control? |
|
|
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
|
Posted: Tue Aug 12, 2003 6:25 pm Post subject: Re: How do I add an OnMouseWeel event to a control? |
|
|
"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
|
Posted: Wed Aug 13, 2003 10:41 am Post subject: Re: How do I add an OnMouseWeel event to a control? |
|
|
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
|
|
| 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
|
|