And this doesn't works for TRichView:
Code: Select all
SendMessage(RichViewEdit1.Handle,EM_LINESCROLL,0,WheelDelta);
Code: Select all
SendMessage(RichViewEdit1.Handle,EM_LINESCROLL,0,WheelDelta);
Marsianin wrote:RichViewEdit locks wheel when active so it scrolls RVE even if cursor is under another control. I don't like this behavior and want to scroll that control under which cursor is and not important if it focused or not.
That may be the default behavior of Windows, but it is not the default behavior of many apps. Take the Delphi IDE for example. It is intuitive to move the mouse over a window that you want to scroll and use the mouse wheel without clicking to give the window focus. In Firefox, while editing this message, the memo box always has focus. But the mouse wheel scrolls the main window if the mouse is outside the edit box and scrolls the edit box if the mouse cursor is within the memo box.Sergey Tkachenko wrote:Mouse wheel scrolls the focused control: this is the default behavior of Windows (focused control receives mouse wheel messages). RichViewEdit does not capture mouse wheel input.