How to detect the scroll value of multiline textbox when scrolling by MOUSE 
Author Message
 How to detect the scroll value of multiline textbox when scrolling by MOUSE

The main problem is that no event is raised in mulitline textbox when
scrolling by mouse.


Wed, 22 May 2002 03:00:00 GMT  
 How to detect the scroll value of multiline textbox when scrolling by MOUSE
Hi Dennis

Quote:
> The main problem is that no event is raised in mulitline textbox when
> scrolling by mouse.

I can help you here... You need to hook the textbox and then look for
WM_HSCROLL messages... This way you can check the scroll value when
scrolling....

Contact me if you have a question about this... I will send you a sample...

----

Best Regards
Kim Pedersen, vbCode Magician

Visit vbCode Magician at:
http://hjem.get2net.dk/vcoders/cm for free VB Tips and ActiveX Controls



Wed, 22 May 2002 03:00:00 GMT  
 How to detect the scroll value of multiline textbox when scrolling by MOUSE
Kim Pedersen. Thank you for your suggestion.
But I can't find a method to determine that textbox be selected (When you
scroll it by mouse, text1_GotFocus is still not raised.) I don't want to use
"Timer" to detect its value.



Quote:
> Hi Dennis

> > The main problem is that no event is raised in mulitline textbox when
> > scrolling by mouse.

> I can help you here... You need to hook the textbox and then look for
> WM_HSCROLL messages... This way you can check the scroll value when
> scrolling....

> Contact me if you have a question about this... I will send you a
sample...

> ----

> Best Regards
> Kim Pedersen, vbCode Magician

> Visit vbCode Magician at:
> http://hjem.get2net.dk/vcoders/cm for free VB Tips and ActiveX Controls



Wed, 22 May 2002 03:00:00 GMT  
 How to detect the scroll value of multiline textbox when scrolling by MOUSE
Kim Pedersen. Thank you very much.
After I visited vbCode Magician .  I know hook can help me to solve this
problem.


Quote:
> Kim Pedersen. Thank you for your suggestion.
> But I can't find a method to determine that textbox be selected (When you
> scroll it by mouse, text1_GotFocus is still not raised.) I don't want to
use
> "Timer" to detect its value.



> > Hi Dennis

> > > The main problem is that no event is raised in mulitline textbox when
> > > scrolling by mouse.

> > I can help you here... You need to hook the textbox and then look for
> > WM_HSCROLL messages... This way you can check the scroll value when
> > scrolling....

> > Contact me if you have a question about this... I will send you a
> sample...

> > ----

> > Best Regards
> > Kim Pedersen, vbCode Magician

> > Visit vbCode Magician at:
> > http://hjem.get2net.dk/vcoders/cm for free VB Tips and ActiveX Controls



Wed, 22 May 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

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

2. forcing multiline textbox to scroll to last line...

3. Setting scroll position of TextBox with MultiLine

4. Setting scroll position of TextBox with MultiLine

5. Scroll bar problem on Multiline Textbox

6. Setting scroll value on a multiline text box?

7. Textbox scroll - want to automatically scroll down when text is input through event

8. Scroll 2 textboxes off a single scroll bar

9. Scroll Bars - detect mouse up & down

10. how to detect middle mouse button scroll

11. Detecting when a mouse is over a scroll bar

12. Detecting Mouse Scroll on VB Form.

 

 
Powered by phpBB® Forum Software