[Gambas-user] ColumnView icon detection

2017-01-18 Thread Olivier Cruilles
Hello, In one of my projects I use icons in a ColumnView 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

Re: [Gambas-user] Gridview icon detection

2017-01-18 Thread Gianluigi
Hi Fabien, I did not understand if you answer the question by Olivier or to that of the Spanish forum. Your code am not able to make it work, sorry, you can have a look? Regarding the new question by Olivier am attaching a possible solution, always it comes from Shordi code. Regards Gianluigi

Re: [Gambas-user] Gridview icon detection

2017-01-18 Thread Fabien Bodard
Maybe the best will beto use 2 column... one for the icon and one for the text. The problem of many users is they want to use the gridview as a data container. Better way will be to have 2 array or an array of class with two value. Private aMyValues as New String[] private aMyStates as new

[Gambas-user] Erratum: ColumnView icon detection

2017-01-18 Thread Yahoo
Sorry for the mistake, it’s not a GridView that I’m talking about but a ColumnView object. —  Olivier Cruilles Le January 18, 2017 à 09:39:32, Yahoo (olivier.cruil...@yahoo.fr) a écrit: Hello, In one of my project I use icons in a GridView object to indicate if a line is ‘checked’ or not

Re: [Gambas-user] Gridview icon detection

2017-01-18 Thread Gianluigi
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 =

[Gambas-user] Gridview icon detection

2017-01-18 Thread Yahoo
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