Scroll msflexgrid with mouse middle button

sujittalukder
01-11-2008, 03:49 AM
I have a long flexgrid for which scrollbars are coming automatically but when I tried to scroll the same through mouse midddle button it no scrolling takes place.

I think for this some code is required. Can some one please provide me teh same?

the master
01-11-2008, 04:07 AM
A quick search on the forums returned this thread (http://www.xtremevbtalk.com/showthread.php?t=282173&highlight=scroll+wheel) in which loquin posts a link to Flyguy's Flexgrid Functions

sujittalukder
01-11-2008, 05:24 AM
Could not find it out Is this function tilted "Rotating a grid, swapping rows/cols " relevant. If yes, then how to use this sub?

the master
01-11-2008, 05:33 AM
I dont know. Ive never used that code before but i do have a project going at the moment that used a flex grid control and i will be wanting scrolling in it so later on when im back at my PC ill have a play around with it and report back

sujittalukder
01-11-2008, 05:39 AM
OK thanks I will wait but dont forget to post back here in case you compete the same. In the mean time if I get it I will post here

dcalvo1
01-11-2008, 02:52 PM
Its on page two of the thread

http://www.adit.co.uk/html/mousewheelsupport.html

the master
01-11-2008, 03:15 PM
That example looks quite good. Ive tested it out in my app and it does work. When using it i would recommend that you disable it until you are ready to compile your app so any errors wont cause VB to crash. Another thing i am going to do is put the hook and unhook in the got/lostfocus events so the grid doesnt scroll if it doesnt have focus

Flyguy
01-13-2008, 05:43 AM
It is post #23: Using the Mouse Wheel in the FlexGrid
http://www.xtremevbtalk.com/showpost.php?p=515893&postcount=23

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum