You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Pages: 1
Topic closed
Hello Jing,
Can you scroll horizontal in the grid, if i use the mouse scroll event?
Shane
Offline
Hi Shane, you can hold shift key and scroll mouse to horizontally scroll.
Offline
Hello Jing,
Ok. Is there anyway to make do that on default.. like override some event because there are couple sheet i just want scroll horizontally.
Shane
Offline
The whole test code is following, it requires to use an inherited class from ReoGridControl and add its instance on form.
Imports unvell.ReoGrid
Public Class Form8
Private Sub Form8_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim grid As New MyReoGridControl() With {.Dock = DockStyle.Fill}
Me.Controls.Add(grid)
End Sub
End Class
' Customize control inherted from ReoGridControl
Class MyReoGridControl
Inherits ReoGridControl
Private Const WM_VWHEEL As Int32 = &H020A
Private Const WM_HWHEEL As Int32 = &H020E
Protected Overrides Sub WndProc(ByRef m As Message)
If m.Msg = WM_VWHEEL Then
m.Msg = WM_HWHEEL
End If
MyBase.WndProc(m)
End Sub
End Class
Last edited by Jingwood (2016-04-09 08:32:16)
Offline
Pages: 1
Topic closed