PDA

View Full Version : TreeView problem (Urgent)


Sav
03-13-2006, 12:32 AM
I have a bit of a problem,
I needed to load a hiarchical tree view (only 2 levels) with data from an xml file and have each sublevel link to a seperate pdf in the autoplay directory.
This worked fine.
Unfortunately after implementing all this I discovered that the TreeView doesn't support transparency (for its background)!? :huh This was a requirement as the background underneath the treeview needs to be shown!

After some thought I have decided to create X (some constant value) amount of labels and hide/move them around in 'code' according to what is pressed.
This is going to be a lot more difficult than the previous implementation.
So before I start I am wondering about a couple of things:

1. Is there any way to get the treeview to have a transparent background???
2. If not, how do I make the labels have on click events in code rather than through the designer; the path will change according to xml content, so I need to add the onClick event handlers for the links in code for each "sub-menu" label, and just click events for the main labels so that when they are clicked I have to show/hide the sub labels...
3. Is there another "easier" solution that I may not be aware of (i'm open to all suggestions).

GSM
04-18-2006, 08:28 AM
I'm having the same problem. Want to make the tree transparent but apparently it can't be done. Amazing how eveything else can be transparent. :(

Franklin Anderson
09-14-2008, 12:01 AM
I clicked an item in TreeView and added an action to it. When I clicked another item , the same action is displayed in the script editor next time. How to add an action to different items in TreeView? Thanks.