Results 1 to 4 of 4

Thread: [RESOLVED] Mouse move in a flexgrid: get row & col

  1. #1

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Resolved [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)

  2. #2
    PowerPoster SamOscarBrown's Avatar
    Join Date
    Aug 2012
    Location
    NC, USA
    Posts
    9,624

    Re: Mouse move in a flexgrid: get row & col

    In your mousemove event, capture grid.mouserow and grid.mousecol

  3. #3
    PowerPoster Nightwalker83's Avatar
    Join Date
    Dec 2001
    Location
    Adelaide, Australia
    Posts
    13,344

    Re: Mouse move in a flexgrid: get row & col

    Quote Originally Posted by SamOscarBrown View Post
    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

  4. #4

    Thread Starter
    vbuggy krtxmrtz's Avatar
    Join Date
    May 2002
    Location
    In a probability cloud
    Posts
    5,573

    Re: Mouse move in a flexgrid: get row & col

    Quote Originally Posted by SamOscarBrown View Post
    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
  •  



Click Here to Expand Forum to Full Width