Re: Scrolling richtextbox using mouse
From: Robert (nomail_at_nomail.com)
Date: 02/07/04
- Next message: Simon Woods: "Q re Height and ScaleHeight"
- Previous message: Vikram Lele: "Re: faking events from a combobox"
- In reply to: mayayana: "Re: Scrolling richtextbox using mouse"
- Next in thread: Joseph M. Ferris: "Re: Scrolling richtextbox using mouse"
- Reply: Joseph M. Ferris: "Re: Scrolling richtextbox using mouse"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 7 Feb 2004 11:04:28 +0100
Thx, your explanation works, but what i actualy trie to do is the same as
moving the scrollbar.
So when a user left click on the richtextbox and move the mouse/cursor i'd
like to change the scrollbar position. (Horizontal or vertical)
I think there must bij an API call for that (set the scrollbar position...or
something)
Robert
"mayayana" <mayaXXyaYYna1a@mindZZspring.com> wrote in message
news:JbXUb.13967$GO6.7091@newsread3.news.atl.earthlink.net...
> It shouldn't be too difficult to just track the mouse
> and then use EM_LINESCROLL messasge:
>
> SendMessage(RTB.HWnd, EM_LINESCROLL, 0&, NumLines)
>
> (where NumLines is a positive or negative number denoting
> number of lines to scroll up or down)
>
> There's also an EM_CHARFROMPOS method to find what
> line the mouse is on, and EM_GETFIRSTVISIBLELINE to
> find out which line is currently at the top.
>
> --
> --
> Robert <nomail@nomail.com> wrote in message
> news:qaRUb.467848$_x2.986025@zonnet-reader-1...
> > Hi,
> >
> >
> >
> > Is it possible in vb6 to scroll a richtextbox using the mouse?
> >
> > I set the cursor to "hand" and i'd like to scroll through the text,
using
> > the mouse (left click and scroll on mouse move)
> >
> >
> >
> >
> > Thx,
> >
> >
> >
> > Robert
> >
> >
>
>
- Next message: Simon Woods: "Q re Height and ScaleHeight"
- Previous message: Vikram Lele: "Re: faking events from a combobox"
- In reply to: mayayana: "Re: Scrolling richtextbox using mouse"
- Next in thread: Joseph M. Ferris: "Re: Scrolling richtextbox using mouse"
- Reply: Joseph M. Ferris: "Re: Scrolling richtextbox using mouse"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|