how to detect middle mouse button scroll 
Author Message
 how to detect middle mouse button scroll

hi,

how can i detect the scrolling of the middle mouse
button in a textbox?

thnx.

t.



Sun, 08 May 2005 19:15:55 GMT  
 how to detect middle mouse button scroll

Quote:
> how can i detect the scrolling of the middle mouse
> button in a textbox?

Derive your own control from textbox and overwrite OnMouseWheel.

Armin



Sun, 08 May 2005 19:30:29 GMT  
 how to detect middle mouse button scroll

hi, thnx for ur email.

i have a textbox called txtName.

when i type "txtName." a list of methods
and properties pops up.

why is  "MouseWheel" not present in that list?!


Quote:

> > how can i detect the scrolling of the middle mouse
> > button in a textbox?

> Derive your own control from textbox and overwrite OnMouseWheel.

> Armin



Sun, 08 May 2005 20:30:51 GMT  
 how to detect middle mouse button scroll

Quote:

> hi, thnx for ur email.

> i have a textbox called txtName.

> when i type "txtName." a list of methods
> and properties pops up.

> why is  "MouseWheel" not present in that list?!

Because it is a Protected method. You can not call it from outside. Calling
the method doesn't make sense. You have to write the method yourself and it
is called automatically when the mousewheel moves. Please read again, what I
wrote.

Armin

Quote:



> > > how can i detect the scrolling of the middle mouse
> > > button in a textbox?

> > Derive your own control from textbox and overwrite OnMouseWheel.

> > Armin



Sun, 08 May 2005 20:52:47 GMT  
 how to detect middle mouse button scroll
ermmm....ok....but if it doesn;t popup how do i know it exists?
by reading the documentation?


Quote:

> > hi, thnx for ur email.

> > i have a textbox called txtName.

> > when i type "txtName." a list of methods
> > and properties pops up.

> > why is  "MouseWheel" not present in that list?!

> Because it is a Protected method. You can not call it from outside.
Calling
> the method doesn't make sense. You have to write the method yourself and
it
> is called automatically when the mousewheel moves. Please read again, what
I
> wrote.

> Armin




> > > > how can i detect the scrolling of the middle mouse
> > > > button in a textbox?

> > > Derive your own control from textbox and overwrite OnMouseWheel.

> > > Armin



Sun, 08 May 2005 22:34:00 GMT  
 how to detect middle mouse button scroll

Quote:
> ermmm....ok....but if it doesn;t popup how do i know it exists?
> by reading the documentation?

Yes.

In addition, there is the object browser. Further more, when deriving your
control from textbox, go to the top left combo in the code editor, select
"overrides" and then the method to override in the top right combo.

Armin



Sun, 08 May 2005 22:54:12 GMT  
 
 [ 6 post ] 

 Relevant Pages 

1. Scroll button in the middle of the mouse

2. How to detect the scroll value of multiline textbox when scrolling by MOUSE

3. How to detect the scroll value of multiline textbox when scrolling by MOUSE

4. getting (middle) mouse button click also outside an vb app

5. Dublicating the middle (or tumb) mouse button to do as mousebutton 1

6. middle mouse button in vb

7. That middle mouse button

8. right or middle mouse button selection...

9. getting (middle) mouse button click also outside an vb app

10. Scroll Bars - detect mouse up & down

11. Detecting when a mouse is over a scroll bar

12. Detecting Mouse Scroll on VB Form.

 

 
Powered by phpBB® Forum Software