Jump to content

Gridlist get selected item.


Fist

Recommended Posts

Hello.

I have kinda problem with gridlist im using code below to get selected gridlist and if any gridlist is selected then it displays info about it, from table waht i made.

but it kinda works, but doesnt correctly, it only gets last item in my table what i made.

  
if (guiGridListGetSelectedItem( itemGridlist) == -1) then 
    guiSetText( label1, "Please select an item" ) 
    guiSetText( label2, "") 
else 
    guiSetText( label1, "item name here .....") 
    guiSetText( label2, "blalbla every item info here")") 
end 
  
 

 PROBLEM SOLVED!!!

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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