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).
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).