Re: [Gambas-user] Changing a treview item's picture property

2008-07-08 Thread M0E Lnx
Thanks, that worked except, I used the treeview's mouse_up event to set the Previous key and the click event to set the pictures for future reference PUBLIC SUB treeview1_mouse_up() sLastKey = treeview1.current.key END Thanks for the push On Tue, Jul 8, 2008 at 2:10 PM, Jaap Cramer <[EMAIL

Re: [Gambas-user] Changing a treview item's picture property

2008-07-08 Thread Jaap Cramer
All entries have at startup pic1. I think when you call the _change of _activate event you set the picture to pic2. I think you should remember the key of the item clicked in a global variable. At the end you replace it with the current Key. This way you remember the previous item clicked. You se

[Gambas-user] Changing a treview item's picture property

2008-07-08 Thread M0E Lnx
Here is my problem I have a tree view I've populated it with my contents, I know how the keys work and all. I have set picture properties for the items in this treeview. Here is what I want to do I have 3 pictures that these items can have Pic1 is for an item that has not yet been clicked on Pic