You mean something like that:

Public Sub GridView1_Click()

    ' From the Shordi's code, look here
https://www.gambas-es.org/show_post.php?p=34694

    With GridView1
    If .Column = 0 Then                                             '
Columns with CheckBox
        If .Current.Picture = Picture["on.png"] Then
            .Current.Picture = Picture["off.png"]
            Print "CheckBox"; (GridView1.Row + 1); " unchecked"
        Else
            .current.Picture = Picture["on.png"]
            Print "CheckBox"; (GridView1.Row + 1); " checked"
        Endif
    Endif
    End With

End

Regards
Gianluigi

2017-01-18 15:39 GMT+01:00 Yahoo <olivier.cruil...@yahoo.fr>:

> Hello,
>
> In one of my project I use icons in a GridView object to indicate if a
> line is ‘checked’ or not and for the moment a double click on these lines
> can change this state as ‘Checked’ or 'Not Checked’.
>
> Would anyone know if it's possible to detect if the user click
> specifically on the icon on a line of a GridView to do this change of state.
> Is there a way to access to the Icon Object of a line of a GridView in
> fact.
>
>
>
>
> Thank you
>
>
> —
> Olivier Cruilles
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to