Forum > Other

Mouse Wheel in StringGrid

(1/2) > >>

faber:
I want to set up MouseWheel behavior in the same way as the vertical ScrollBar (with out goScrollKeepVisible).
I don't want to change the location of active cell by mouse wheel.
I just want to move the entire sheet when I'm scrolling by mouse(like MS Office).
How to do that ?

faber:
I found solution by overriding the DoMouseWheelDown and DoMouseWheelUp routines

cpalx:
i dont get it...

faber:

--- Quote from: cpalx on March 03, 2009, 06:57:14 pm ---i dont get it...

--- End quote ---
?
By override DoMouseWheel... ( off, Result:=false ) I get what I want.

noctrex:

--- Quote from: faber on March 03, 2009, 09:54:58 am ---I found solution by overriding the DoMouseWheelDown and DoMouseWheelUp routines

--- End quote ---
I know this post is old, but is it possible to tell us how you did it?
I'm currently struggling with this...

Navigation

[0] Message Index

[#] Next page

Go to full version