Quantcast
Channel: Xojo Programming Forum - Latest topics
Viewing all articles
Browse latest Browse all 3866

WebListbox Pressed Event Row Param is -1 when a WebDataSource is Used

$
0
0

Feel like I’m missing something obvious here…

When I populate a WebListBox using a WebDataSource the pressed event is always returning a row value of -1 (column is correct)

Same for the DoublePressed event.

My suspicion is there’s an error in my class (implementer of WebDataSource), but… I’m not sure how a WebListBox with its DataSource property set determines the row value when a row is clicked?

To be clear, what I’m seeing is this:

(Populated list)

but… the row parameter of the ‘Pressed’ event for the WebListbox is always negative 1 (-1), no matter which row I click.

This only happens if the WebListbox uses a WebDataSource.

If I load the list manually (addrow) then the row parameter of the ‘Pressed’ event has the expected value. (the row which was clicked)

Additional details:

  • Xojo 2024r1.1
  • MacOS Sonoma 14.5 (23F79) (Intel)
  • App is running in the debugger

10 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 3866

Trending Articles