[Gambas-user] Event WebTable.Click

Bruce Steers bsteers4 at gmail.com
Wed Mar 1 14:02:53 CET 2023


On Wed, 1 Mar 2023 at 12:25, Mayost Sharon <sharon at 455.co.il> wrote:

> Hello
>
> I am trying that when I click on an element inside a cell in the table it
> will respond to the click event
>
> Clicking with the mouse does not trigger the click event
> Even if I click on the cell and if I click on the button that I put inside
> the cell
>
> Is there a bug? Or I misunderstood what the click event is supposed to do
>
> I am attaching an example file
>
> Thank you
>

Note: if you do not use the proper gambas way of making a control and just
use your own html then the control will be missing required things like
click event triggers.

Your example code that added a button did not even have a onclick event set
for the button so of course it did not fire one so the WebTable_Click event
does not trigger.

So you cannot just simply insert things using your own html, they must be
created/configured correctly (using gb.web.gui methods) to work correctly.

Good luck
BruceS
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230301/f63e5e75/attachment.htm>


More information about the User mailing list