I've got a control with a scrollbar docked to the right-hand side. The
scrollbar works fine, I've got an event:
bottomControlVScroll.Scroll += new
ScrollEventHandler(HandleBottomThingScroll);
Which calls this.Invalidate() on my control, and all is good. However, the
MouseWheel does naff all. I understand this is probably because my mouse is
over my control, and not the scrollbar. How can I set the MouseWheel event
on my control to pass to the ScrollBar, where the .Value is updated, and my
control invalidated & repainted?
--
Daisy The Cow
Now playing: Ultrabeat - Pretty Green Eyes 7 19976 -----Original Message----- I've got a control with a scrollbar docked to the right-
hand side. Thescrollbar works fine, I've got an event:
bottomControlVScroll.Scroll += new ScrollEventHandler(HandleBottomThingScroll);
Which calls this.Invalidate() on my control, and all is
good. However, theMouseWheel does naff all. I understand this is probably
because my mouse isover my control, and not the scrollbar. How can I set
the MouseWheel eventon my control to pass to the ScrollBar, where the .Value
is updated, and mycontrol invalidated & repainted?
-- Daisy The Cow Now playing: Ultrabeat - Pretty Green Eyes
Make the MouseWheel event of your control, go to
your HandleBottomThingScroll() method.
I hope this help.....
"Daisy" <da***@nospam.oops> wrote in message
news:be**********@linux01.dannytuppeny.com... I've got a control with a scrollbar docked to the right-hand side. The scrollbar works fine, I've got an event:
<snip>
Scrap that, the wheel works now, I altered .Value depending on e.Delta :o)
Anyways, the only problem now, is that it only works while my mouse is over
the scrollbar, and not anywhere in my control. I even added:
this.MouseWheel += new MouseEventHandler(HandleBottomThingWheel);
In the Constructor, and it still doesn't work for the control :(
Any ideas?
--
Daisy The Cow
Now playing: Eminem - Lose Yourself
"Hector Yunier" <hm********@uci.cu> wrote in message
news:02****************************@phx.gbl... Make the MouseWheel event of your control, go to your HandleBottomThingScroll() method.
I hope this help.....
It does now:
bottomControlVScroll.Scroll += new
ScrollEventHandler(HandleBottomThingScroll);
bottomControlVScroll.MouseWheel += new
MouseEventHandler(HandleBottomThingWheel);
this.MouseWheel += new MouseEventHandler(HandleBottomThingWheel);
But the wheel still only works when over the scrollbar :-((
--
Daisy The Cow
Now playing: Flip & Fill - I Wanna Dance With Somebody
I am not sure if you have already tried this but, is there a way to hook
into MouseWheel notifications for the window (parent of the scrollbar)
instead of the scrollbar itself? Then you could simply forward the message
on to the scrollbar control.
"Daisy" <da***@nospam.oops> wrote in message
news:be**********@linux01.dannytuppeny.com... "Daisy" <da***@nospam.oops> wrote in message news:be**********@linux01.dannytuppeny.com... I've got a control with a scrollbar docked to the right-hand side. The scrollbar works fine, I've got an event: <snip>
Scrap that, the wheel works now, I altered .Value depending on e.Delta :o)
Anyways, the only problem now, is that it only works while my mouse is
over the scrollbar, and not anywhere in my control. I even added:
this.MouseWheel += new MouseEventHandler(HandleBottomThingWheel);
In the Constructor, and it still doesn't work for the control :( Any ideas? -- Daisy The Cow Now playing: Eminem - Lose Yourself
"Trevor" <tb*****@s-s.com> wrote in message
news:Od**************@TK2MSFTNGP10.phx.gbl... I am not sure if you have already tried this but, is there a way to
hook into MouseWheel notifications for the window (parent of the scrollbar) instead of the scrollbar itself? Then you could simply forward the
message on to the scrollbar control.
How do I "forward" them on? I can't call MouseWheel directly?
--
Daisy The Cow
Now playing: Nothing
Try creating a composite control (if you're not already using) and
overriding the OnMouseWheel event. Do everything you need there. Works for
me.
[]'s,
Harkos
"Daisy" <da***@nospam.oops> escreveu na mensagem
news:be**********@linux01.dannytuppeny.com... "Trevor" <tb*****@s-s.com> wrote in message news:Od**************@TK2MSFTNGP10.phx.gbl... I am not sure if you have already tried this but, is there a way to hook into MouseWheel notifications for the window (parent of the scrollbar) instead of the scrollbar itself? Then you could simply forward the message on to the scrollbar control.
How do I "forward" them on? I can't call MouseWheel directly? -- Daisy The Cow Now playing: Nothing
"Harkos" <ha****@uol.com.br> wrote in message
news:Oi**************@tk2msftngp13.phx.gbl... Try creating a composite control (if you're not already using) and overriding the OnMouseWheel event. Do everything you need there. Works for me.
It's ok, it already works. I've got a cráppy Vaio mouse on this laptop,
along with a USB keyboard with it's own cráppy drivers. Must be them, works
on every other pc :o)
--
Daisy The Cow
Now playing: Alice Deejay - Better Off Alone This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: deko |
last post by:
Is it possible to disable the mouse wheel WITHOUT using a DLL?
I've looked at Microsoft Knowledge Base Article 278379
(http://support.microsoft.com/default.aspx?scid=kb;en-us;278379), which...
|
by: Jack |
last post by:
Hi all,
I searched the archives and found everyone happy with Stephen's
MouseWheel On/Off code except for those with subforms. Stephen's page
indicates that he has added code to handle subforms...
|
by: Jordi Rico |
last post by:
Hi, I'm creating an UserControl, a kind of a datagrid. By now, i've
been able to implement mousewheel events, so I can move the scrollbars
when the app detects this event.
Now i want to add some...
|
by: Nicholas Shewmaker |
last post by:
(I apologize if this posts twice. My AVG is being fussy.)
From what I've read, MouseWheel is a very tricky event. I have
replaced my Python tcl84.dll and tk84.dll files with those in the...
|
by: James |
last post by:
Hi,
I have a Windows Forms application which uses multiple child forms (MDI
interface).
The height of one of the child forms is larger than the height of the MDI
client area, so when this...
|
by: Dave K |
last post by:
I seem to be missing something... I want to use a mousewheel event in my
VB.NET app... and there's a lot of example code on the net showing how to use
the mousewheel event... and the .NET docs...
|
by: InvalidLastName |
last post by:
We have been used XslTransform. .NET 1.1, for transform XML document, Dataset with xsl to HTML. Some of these html contents contain javascript and links. For example:
// javascript
if (a > b)...
|
by: WaterWalk |
last post by:
Hello. When I tried to make Tkinter canvas widget respond to
MouseWheel event on Windows XP, I failed. The canvas just doesn't
receive MouseWheel event. I used bind_all to find out which widget...
|
by: =?Utf-8?B?UmljaA==?= |
last post by:
In a database search application (vb2005), the user wants to be able to
scroll through records using the mousewheel. The data display form contains
textboxes for the main data and a datagridview...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |