|
-
Aug 7th, 2014, 03:03 PM
#1
[RESOLVED] Mouse move in a flexgrid: get row & col
In a flexgrid, how do I retrieve the row and column numbers of the cell the mouse is on (i.e. hovering)?
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
-
Aug 7th, 2014, 03:17 PM
#2
Re: Mouse move in a flexgrid: get row & col
In your mousemove event, capture grid.mouserow and grid.mousecol
-
Aug 7th, 2014, 10:57 PM
#3
Re: Mouse move in a flexgrid: get row & col
 Originally Posted by SamOscarBrown
In your mousemove event, capture grid.mouserow and grid.mousecol
Here is an example
Code:
Private Sub MSFlexGrid1_MouseMove(Button As Integer, Shift As Integer, x As Single, y As Single)
Me.Caption = MSFlexGrid1.Row & ", " & MSFlexGrid1.Col
End Sub
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Aug 8th, 2014, 02:28 AM
#4
Re: Mouse move in a flexgrid: get row & col
 Originally Posted by SamOscarBrown
In your mousemove event, capture grid.mouserow and grid.mousecol
I had forgotten about mouserow and mousecol properties altogether.
Thank you.
Lottery is a tax on people who are bad at maths
If only mosquitoes sucked fat instead of blood...
To do is to be (Descartes). To be is to do (Sartre). To be do be do (Sinatra)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|