What I mean is anytime a user resizes a col with the mouse I want to keep track of the width the col was sized too. So if the control had a Col_Resize Event( but it doesn't) I would be able to put some code in that Event, that would store the new col size.
As there isn't an event to handle this, (here comes the workaround) you could have a timer control on the form and check the column sizes when the timer fires.
I thought about using the timer control but for now I going to use the mousemove on the MSHFlexgrid.
Private Sub grdMyRec_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
' If Mouse is on Fixed row then check resize of col
' else just exit sub
If (y > 200) Then
Exit Sub
End If
' Call function that checks the size of cols.
Call CheckColResize
End Sub
I figured there will be times when the program will be process information without any user intervention and I did not want a timer going off every 5 sec.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.