Nonameman Posted August 4, 2011 Share Posted August 4, 2011 Hey! I'm confused about two gui gridlist function, guiGridListGetItemData() and guiGridListGetItemText(). They both return a string, so I thought they do the same, find the item from the given column and row index, and return the found item's content. Am I right or not? Which of them shall I use? Thanks Nonameman Link to comment
Castillo Posted August 4, 2011 Share Posted August 4, 2011 Yes, but one returns the TEXT and other the DATA, you can use guiGridListSetItemText to set a row TEXT and guiGridListSetItemData to set a row DATA, they aren't the same. Link to comment
qaisjp Posted August 5, 2011 Share Posted August 5, 2011 set item data is similar to set element data cast (except ur ptting it on a gui-item) ? Link to comment
Nonameman Posted August 5, 2011 Author Share Posted August 5, 2011 But gridlist item's data isn't the text you can see? Link to comment
Castillo Posted August 5, 2011 Share Posted August 5, 2011 That's right, you can't see the gridlist data, that's usefull when you want to hide something and use it later. @Qais: Yes, I think it's similar, but this works with rows, is not setting the data to the gridlist himself. Link to comment
Nonameman Posted August 5, 2011 Author Share Posted August 5, 2011 Aha, so it's a hidden data. Thank you guys! Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now