Jump to content

Para que se utiliza esto


Sticmy

Recommended Posts

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

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
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...