[Gambas-user] Event WebTable.Click
Bruce Steers
bsteers4 at gmail.com
Wed Mar 1 13:50:17 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
>
you probably need to use Data.Control so it configures properly and not
just insert a button using Data.Html
This works and fires the WebTable_Click event okay.
Public Sub WebTable1_Data(Row As Integer, Column As Integer, Data As
WebTableData)
Select Case Column
Case 0
Data.Background = Color.SetAlpha(Color.Yellow, 192)
Data.Text = "Data: " & CString(Row) & "_" & CString(Column)
Case 1
Dim wb As WebButton = New WebButton(Me)
wb.Text = "Button: " & CString(Row) & "_" & CString(Column)
wb.Class = "button is-danger"
Data.Control = wb
End Select
End
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20230301/7941ce46/attachment.htm>
More information about the User
mailing list