_marabout
04-09-2006, 10:28 AM
Hi,
I plan to use the Tree component to represent a hierarchy of categories.
Basically this will be a list : every nodes will always be visible, I don't want to let the user fold nodes, I don't want the little arrows with branch nodes, and I don't want the icons neither...
Why not using a List will you tell me ? :confused: Because what is shown is truly a hierarchy and I will feed it with xml, so the Tree is the most 'natural' choice.
So what do I need to modify :
- hide arrows for branch nodes,
- hide nodes icons,
- deactivate the folding behavior for any branch node
Of course I don't want to use the enabled property since clicking on any item in the list will trigger an action.
Ideally, I'd prefer a solution based on playing with the properties/methods of the component... I wouldn't like to have to modify the component's code or build a custom one based on MM's (still I've started preparing myself emotionaly to it :rolleyes: )
If anyone has a clue for solving one or all of the problems listed above, I'm all ears (and eyes) !
I plan to use the Tree component to represent a hierarchy of categories.
Basically this will be a list : every nodes will always be visible, I don't want to let the user fold nodes, I don't want the little arrows with branch nodes, and I don't want the icons neither...
Why not using a List will you tell me ? :confused: Because what is shown is truly a hierarchy and I will feed it with xml, so the Tree is the most 'natural' choice.
So what do I need to modify :
- hide arrows for branch nodes,
- hide nodes icons,
- deactivate the folding behavior for any branch node
Of course I don't want to use the enabled property since clicking on any item in the list will trigger an action.
Ideally, I'd prefer a solution based on playing with the properties/methods of the component... I wouldn't like to have to modify the component's code or build a custom one based on MM's (still I've started preparing myself emotionaly to it :rolleyes: )
If anyone has a clue for solving one or all of the problems listed above, I'm all ears (and eyes) !