Jump to content

usar flechas en gridlist


Recommended Posts

Es gridlist? Si es gridlist:

guiGridListGetSelectedItem 
guiGridListSetSelectedItem 
bindKey 

Ejemplo ( No testeado ):

function nextSelected(key) 
    local row, column = guiGridListGetSelectedItem( theGridList ) 
    if key == "arrow_u" then 
        guiGridListSetSelectedItem ( theGridList, row+1, column ) 
    elseif key == "arrow_d" then 
        guiGridListSetSelectedItem ( theGridList, row-1, column ) 
    end 
end 
bindKey("arrow_d", "down", nextSelected) 
bindKey("arrow_u", "down", nextSelected) 

Link to comment
  • Recently Browsing   0 members

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