Nanaki Posted May 30, 2005 Posted May 30, 2005 Hi everyone, I 'm having (another) problem. I'm currently trying to use an array to store registry values. The first dimension holds all keys within a certain key, the second dimension stores a value from each individual key. I know want that second dimension to display in a List-control. Now comes the tricky part. When I click an item in the List-control, I want it to load the corresponding value in the first dimension. When I click $array[n][1] I want to see $array[n][0] in a msgbox. How can I accomplish this? I can't search thro the array since the second dimension has some duplicate entries. I also can't put a number next to each string, as empty strings in the second dimension will also be displayed then. Thanks in advance,
GaryFrost Posted May 31, 2005 Posted May 31, 2005 Have you thought about putting both values in the the Listview, and Hide the column you want to use in the message box? SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference.
Nanaki Posted June 6, 2005 Author Posted June 6, 2005 That might work, but how do you accomplish it? I found no information about hiding a column, nor making the fisrt column non-resizable. :/
Lord_Doominik Posted June 6, 2005 Posted June 6, 2005 i think youve got the same problem than me, but ive done this with a GUICtrlRead($listview) command... that retrieves a number (for example 24 or something like this... i dont know why its a so high number at the first line, and how the number ist built)... or you use GUICtrlRead(GUICtrlRead($listview)), that retrieves the value (for example: Name|SecondName)...
buzz44 Posted June 7, 2005 Posted June 7, 2005 DL one of the latest BETA's that has the _GUICtrlListViewXXXXXX() commands. I think thats the right function name (can't check atm). Any way, all the functions you will need are included, including hide column, set column width, get item text etc. qq
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