[Gambas-user] Gridview icon detection
Gianluigi
bagonergi at ...626...
Wed Jan 18 17:55:37 CET 2017
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.cruilles at ...614...>:
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
More information about the User
mailing list