Sticmy Posted July 7, 2015 Share Posted July 7, 2015 Hola, me podrían explicar para que se utiliza está función en los gridlist. guiGridListSetColumnTitle Link to comment
Guest Posted July 7, 2015 Share Posted July 7, 2015 This function is used to change the column title of a gridlist column. Si lo traducimos, dice que funciona para CAMBIAR el título de una COLUMNA de una lista guiGridListSetColumnTitle(myList, myGrid, "test" ) Link to comment
Sticmy Posted July 7, 2015 Author Share Posted July 7, 2015 Ok, luego lo probaré jeje Link to comment
Sticmy Posted July 7, 2015 Author Share Posted July 7, 2015 Bueno, quería saber como pudiera hacer esto. hay alguna función o debo hacerlo con xml?. URL DE IMAGEN: http://i.imgur.com/BwtPPiy.png el texto que dice 'xdd' Link to comment
Sticmy Posted July 7, 2015 Author Share Posted July 7, 2015 El texto 'xdd' cómo lo tienes en tu server el color celeste no sé si tu lo haces con xml o otra forma. Link to comment
Tomas Posted July 7, 2015 Share Posted July 7, 2015 guiGridListSetItemText con el 5to argumento en true. Link to comment
Sticmy Posted July 7, 2015 Author Share Posted July 7, 2015 Lo que quiero hacer es agregar otro Column abajo de los textos. Link to comment
Calculador Posted July 7, 2015 Share Posted July 7, 2015 Esto ? guiGridListInsertRowAfter Link to comment
Sticmy Posted July 8, 2015 Author Share Posted July 8, 2015 Bueno no funciona puse la ID de la fila y no funciona dejo mi código. addEventHandler("onClientResourceStart", resourceRoot, function() panel = guiCreateWindow(397, 81, 533, 485, "", false) guiWindowSetSizable(panel, false) gridlist = guiCreateGridList(10, 22, 513, 418, false, panel) cerrar = guiCreateButton(165, 452, 183, 23, "Close", false, panel) column = guiGridListAddColumn(gridlist,"Testing",0.90) for i = 1, 10 do guiGridListAddRow(gridlist) end guiGridListSetItemText(gridlist, 0, 1, "test1", false, false) guiGridListSetItemText(gridlist, 1, 1, "test2", false, false) guiGridListSetItemText(gridlist, 2, 1, "test3", false, false) guiGridListSetItemText(gridlist, 3, 1, "test4", false, false) guiGridListInsertRowAfter ( gridlist, 5 ) guiGridListSetItemText(gridlist, 4, 1, "test5", false, false) guiGridListSetItemText(gridlist, 5, 1, "test6", false, false) guiGridListSetItemText(gridlist, 6, 1, "test7", false, false) guiGridListSetItemText(gridlist, 7, 1, "test8", false, false) guiGridListSetItemText(gridlist, 8, 1, "test9", false, false) guiGridListSetItemText(gridlist, 9, 1, "test10", false, false) guiGridListInsertRowAfter ( gridlist, 2 ) end) Link to comment
AlFA# Posted July 8, 2015 Share Posted July 8, 2015 addEventHandler("onClientResourceStart", resourceRoot, function() panel = guiCreateWindow(397, 81, 533, 485, "", false) guiWindowSetSizable(panel, false) gridlist = guiCreateGridList(10, 22, 513, 418, false, panel) cerrar = guiCreateButton(165, 452, 183, 23, "Close", false, panel) column = guiGridListAddColumn(gridlist,"Testing",0.90) for i = 1, 10 do guiGridListAddRow(gridlist) end guiGridListSetItemText(gridlist, 0, 1, "test1", true, false) guiGridListSetItemText(gridlist, 1, 1, "test2", true, false) guiGridListSetItemText(gridlist, 2, 1, "test3", true, false) guiGridListSetItemText(gridlist, 3, 1, "test4", true, false) guiGridListInsertRowAfter ( gridlist, 5 ) guiGridListSetItemText(gridlist, 4, 1, "test5", true, false) guiGridListSetItemText(gridlist, 5, 1, "test6", true, false) guiGridListSetItemText(gridlist, 6, 1, "test7", true, false) guiGridListSetItemText(gridlist, 7, 1, "test8", true, false) guiGridListSetItemText(gridlist, 8, 1, "test9", true, false) guiGridListSetItemText(gridlist, 9, 1, "test10", true, false) guiGridListInsertRowAfter ( gridlist, 2 ) Link to comment
Tomas Posted July 8, 2015 Share Posted July 8, 2015 Tu quieres que queden así como están los nombres de los team en este ejemplo? http://i.imgur.com/z8HzmNU.jpg Link to comment
Sticmy Posted July 8, 2015 Author Share Posted July 8, 2015 Gracias a todos ya lo solucione y gracias por tu código alfa. Link to comment
Tomas Posted July 9, 2015 Share Posted July 9, 2015 Es un poco raro porque lo que pediste al principio no es lo que hizo Alfa, pero boe... Link to comment
Recommended Posts