From: Ade <sk...@bl...> - 2006-09-11 20:13:10
|
Hello, I an having a real problem with a tree control. I can generate tree for a set of infomation like: = ROOT | ----a ----b | | | ----click | ----drop | ----d | ----click = and the set is a break down of a lines of code like this : Root_b_drop or Root_b_click but I can not for the life of me see how to recreate the line of code or hold a pointer so that clicking the 'click' or 'drop' item in the tree gives me the full line back. If I click on 'click' then the only text returned is 'click' which is not unique for looking up in a list. Does the item you click on have to be unique so you can look up the answer in a list? A pointer is returned with event.GetItem() but i have not been able to use this as a unique reference to anything I get errors, which is odd= since I can use the pointer to store a list or dictionary as in new1 =3D tree.AppendItem(new1, "tabControlMain") s.dict[new1] =3D "tabControlMain" but on the 'activate Item' I get the 'expected type' errors I have searched the net and it seems only concerned with getting data into a tree and not out again. Please show me how I should be referencing the return values on say the 'item_Activated' function. Thankyou Adrian Smith -- = Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ |