Bug in the Documentation (ListBox)

The code below crash in the column line.

Var row, column As Integer

row = Me.RowFromXY(System.MouseX - Me.Left - Self.Left - Me.TrueWindow.Left, System.MouseY - Me.Top - Self.Top - Me.TrueWindow.Top)
column = Me.ColumnFromXY(System.MouseX - Me.Left - Me.Parent.Left - Me.TrueWindow.Left, System.MouseY - Me.Top - Me.Parent.Top - Me.TrueWindow.Top)

Xojo 2021r2.1
Ventura 13.3.1 (22E261)
MacBook Pro m1

and the code I tested before (I wrote it some days ago, but apparenty forgot it have troubles):
Var Row, Column As Integer

Row = Me.RowFromXY(System.MouseX - Me.Left - Self.Left, System.MouseY - Me.Top - Self.Top)
Column = Me.ColumnFromXY(System.MouseX - Me.Left - Self.Left, System.MouseY - Me.Top - Self.Top)

The click goes Click + 2 Rows / Click + 2 Columns…
(and in another project, I was able to make it works: just tested)


Raise an issue, documentation issues are generally addressed pretty quickly. Although the team is in London at the moment. It’s also good to include the URL to the page you are talking about. You can get that by opening the documentation in a web browser and finding the page.



in the book of bugs

Apparently this bug exists for a long time.

Are you talking about Barbara Morse ?

If you have a documentation bug that has not been addressed send an email to hello@xojo.com and point it out.

I’m talking about Xojo issues system:

I’m not sure what Agents of S.H.I.E.L.D. has got to do with anything :confused:

I do not have, there are…:innocent:

I do not understand, sorry. :man_shrugging:

Are you using Listbox (deprecated) or DesktopListbox?
Is your Listbox in a container?
What event are you using?
What is the error/crash that you get?
Did you already file an Issue on the Xojo Issues Tracker?