Re: [Gambas-user] Gridview icon detection

2017-01-19 Thread Linus
Hi Fabien, Thank you for the example but I made a mistake and it’s not for a GRIDVIEW but for ColumnView that I would detect the Icon. Do you have any idea to do that please ? Olivier Cruilles > Le 19 janv. 2017 à 07:46, Gianluigi a écrit : > > Hi Fabien, > > very

Re: [Gambas-user] Gridview icon detection

2017-01-19 Thread Gianluigi
Hi Fabien, very interesting especially the explanation of _Draw :-) I thank you so much Regards Gianluigi 2017-01-19 12:07 GMT+01:00 Fabien Bodard : > Ok this is my fault as i've not tested my code ... so i've forgot to > little things > > This is so the working code : >

Re: [Gambas-user] Gridview icon detection

2017-01-19 Thread Fabien Bodard
Ok this is my fault as i've not tested my code ... so i've forgot to little things This is so the working code : Private aMyValues As New String[] Private aMyStates As New Integer[] Private aMyPicState As New Picture[3] Public Sub _New() aMyPicState[0] = Picture["img/checked.png"]

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

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