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

[Gambas-bugtracker] Bug #3132: WebTable_Select event returns Current = -1


http://gambaswiki.org/bugtracker/edit?object=BUG.3132&from=L21haW4-

Comment #4 by Benoît MINISINI:

> The WebTable object also exposes the event Click(Row As Integer, Column As Integer), but it only works if an additional object is used to trigger the event (for example, a WebButton). In that case, the Row value can be retrieved. This behavior cannot be achieved using Select.
> Does this mean that an external object is always required to trigger the event?

Yes. That 'Click' event is different from the 'Click' event of the 'GridView' control in the GUI component.

It is only raised when you click on a Button embedded in a cell through the 'WebTable.Data.Control' property.

I should have named this event 'ControlClick' or 'ButtonClick', but once the mistake is made, you can't go back because of backward-compatibility.

And so there is no true 'Click' event that would be raised when you click on a line even if the selection does not change.



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----