Scrolling with middle mouse button - not working.
Scrolling with middle mouse button - not working.
Just found that the scroll with middle mouse button (when pressing wheel) doesn't works.
There are a lot of mouse drivers that have this feature when pressing and releasing mouse wheel like a button inside a text control makes mouse cursor round with up/down pointers and after that moving mouse up/down scrolls the text. This doesn't works with TRichView.
There are a lot of mouse drivers that have this feature when pressing and releasing mouse wheel like a button inside a text control makes mouse cursor round with up/down pointers and after that moving mouse up/down scrolls the text. This doesn't works with TRichView.
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Marsianin, I believe this type of scrolling (pressing middle button and moving mouse) is implemented not by drivers but by applications.
On my computer, only few applications implement this feature:
- IE
- OE (only in editor, not in lists)
- MS Office
- CodeGear RAD Studio.
And in all these applications this gadget looks slightly different.
No, TRichView does not implement this feature yet.
On my computer, only few applications implement this feature:
- IE
- OE (only in editor, not in lists)
- MS Office
- CodeGear RAD Studio.
And in all these applications this gadget looks slightly different.
No, TRichView does not implement this feature yet.
Last edited by Sergey Tkachenko on Sun Jan 20, 2008 10:04 am, edited 1 time in total.
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
Imouse (imouse.pas unit) is a standard implementation of scrolling with middle button (called also "mouse panning"). It's also used in RAD Studio. Imouse functionality relays on standard window scrollbars and sends WM_HSCROLL/WM_VSCROLL to the window to make it scroll. It works on every window, that have a scrollbar (e.g. TListView, TTreeView, even TForm/TFrame if AutoScroll is True and at least one scrollbar is visible).Sergey Tkachenko wrote:Smike, what is imouse?
TRichView uses standard window scrollbars, but I think it does not matter in this case.
Oh, I've forgotten one thing. Control must have csPannable in ControlStyle, but RichView hasn't by default. So, after adding
Code: Select all
RichViewEdit1.ControlStyle := RichViewEdit1.ControlStyle + [csPannable];
So, there are no hitches with it, all works right
Yes, I agree. Try out my modificationMarsianin wrote:Thanks Smike, it's working now
Only one thing left...standard cursor for this looks little bit ugly
http://smike.drkb.ru/components/mousepan.zip
Description of modifications:
http://smike.drkb.ru/components/mousepan.htm
(Currently only in Russian)
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact:
-
- Site Admin
- Posts: 17534
- Joined: Sat Aug 27, 2005 10:28 am
- Contact: