[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -1 value from "GridView1.Column" and "GridView1.Row" with the middle mouse button


On 9/2/25 8:30 PM, vuott@xxxxxxxxxxxx wrote:
Hello,
if I click with the "middle" mouse button inside any "cell" of a GridView, I get  -1 value from "GridView1.Column" and -1 value from "GridView1.Row".

Example:
   Public Sub Form_Open()

    With GridView1
      .Columns.Count = 5
      .Rows.Count = 5
    End With

   End


   Public Sub GridView1_MouseUp()

     Print GridView1.Column, GridView1.Row

   End

Furthermore, if I click with the middle mouse button after clicking with the right or left button, I get the "last" value returned by the right or left click.

...strange.

Regards

I thought perhaps the event to use to get correct Row and Column values might be GridView1_MouseWheel. But, that event doesn't get triggered.


--
Lee

--- Gambas User List Netiquette [https://gambaswiki.org/wiki/doc/netiquette] ----
--- Gambas User List Archive [https://lists.gambas-basic.org/archive/user] ----


Follow-Ups:
Re: -1 value from "GridView1.Column" and "GridView1.Row" with the middle mouse buttonBenoît Minisini <benoit.minisini@xxxxxxxxxxxxxxxx>