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?
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
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?
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
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
01-11-2008, 02:52 PM
Its on page two of the thread
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
01-13-2008, 05:43 AM
It is post #23: Using the Mouse Wheel in the FlexGrid