Hello everyone, we have an educational project called edulibreos and are developing a launcher of all applications installed (usr / share / applicaction / *. Desktop), we have shown in a IconView the list of separate programs by category (eg officina all corresponding to office, all audio corresponding to audio) but we could not display the icon for each application that may help us please. The code we have is the following:
punto = "." deli = " : " categoria = "Development" finlinea = "\n" ' retorno de carro (separa las filas) fincolumna = "\t" 'tabulador (separa las colunas) Shell "find /usr/share/applications/*.desktop | xargs grep " & categoria & " | cut -d" & deli & "-f 1 | cut -c 25-1000 | cut -d " & punto & " -f 1 | sort -u | sort" To portapapeles lineas = Split(portapapeles, finlinea) For a = 0 To lineas.count - 1 linea_procesada = lineas[a] columnas = Split(linea_procesada, fincolumna) For c = 0 To columnas.count - 1 If a = 0 And titulos = -1 Then rejilla.Columns[c].title = columnas[c] Else If titulos = 0 Then f_launcher.IconViewCategoriasSelect.Add(a, linea_procesada) If titulos = 0 Then rejilla[a, 1].text = columnas[c] If titulos = -1 Then rejilla[a - 1, c].text = columnas[c] Endif Next Next ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user