Re: Scrolling richtextbox using mouse

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Robert (nomail_at_nomail.com)
Date: 02/07/04


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
> >
> >
>
>



Relevant Pages

  • Usernames
    ... How can I delete unuseable usernames in the scrollbar for to start a profil? ... Thx and greets ...
    (microsoft.public.windowsxp.messenger)
  • adding an horizontal scrollbar to columns
    ... I've got a simple excel spreasheet with 10 columns. ... to add a scrollbar from the third one to the eighth one so that when I ... Thx ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • Can I remove the scrollbar from TListbox?
    ... I seem to be having a problem with the TListbox. ... items to it, it displays a scrollbar, which I do not want. ... How do I go about removing it then? ... Thx in advance ...
    (alt.comp.lang.borland-delphi)
  • Re: HOWTO: Detect User Read The Privacy Policy In Scrolling Textbox
    ... With a little creative thought, the scrollbar position can be read, and if ... this reading is at its maximum position, the checkbox can then be changed ... > to detect whether the user has actually read the Privacy Policy. ... >> The asp:textbox has a scrollbar and it makes sense that if the ...
    (microsoft.public.vstudio.general)
  • Re: Question on scrollbars
    ... "Aric Bills" wrote in message ... > Hi Robert, ... When you're displaying a line that's wrapped, ... > the slider on your scrollbar will be shorter than when you're not ...
    (comp.lang.tcl)