2007 Sep 14 3:39 PM
Hello,
I'm working with the cl_gui_column_tree class to build a user interface and i wonder if it's possible to remove the expander icons (not the icon for the opended/closed folder itself) of a tree at some places.
The standard layout would be something like this:
- Root (expanded)
- Node 1 (expanded)
Item 1
Item 2
+ Node 2 (unexpanded)
(Note that + and - are no folder icons but only the expander icons (some arrows)).
What I want to achieve is that there is no expander displayed in some cases and that a node is automatically expanded if it has subelements. The example above would look like this if i would be able to deactivate the expander icons for Node 1 and 2 (or at least overwrite the icons with the empty icon):
- Root
Node 1
Item 1
Item 2
Node 2
Item 3
Is this possible somehow? The 'expander' property of a Node seems to have no effect on this when set to initial.
An additional question goes to the default icons of folder or leaf nodes. I'd like to know their icon-code but I wasn't able to find these icons in the ICON table. Are they stored elsewhere or does anyone know their @XY@ codes?
Thanks for your help!
2007 Sep 14 4:17 PM
Hello Andreas
At least I can answer your questions regarding the icons: run report <b>RSTXICON</b>.
Regards
Uwe
2007 Sep 14 4:17 PM
Hello Andreas
At least I can answer your questions regarding the icons: run report <b>RSTXICON</b>.
Regards
Uwe
2007 Sep 17 7:12 AM
Well thanks, that is at least a nice list for the @XY@ codes. Nevertheless, I can't find the default tree icons for nodes and leafs in this list, because the report just shows the content of the ICON table and I've already looked there.
2007 Sep 17 8:21 AM
Hello,
ICON_OPEN_FOLDER -> @FO@
ICON_CLOSED_FOLDER -> @FN@
I don't know if this will work, but you can try the method node_set_no_branch -> "Use this method to specify whether hierarchy lines should be drawn to a node." Maybe it will then hide the +/-
Regards,
Walter
2007 Sep 17 9:00 AM
I don't think these come from ICON ... Because the tree control is rendered in the front end, I think they probably come from the images in "sapctree.bmp" which you'll find under your SAGui (where the "skins" are held). Not sure about turning them off though for a single report... but I will have a quick look.
Jonathan
2007 Sep 17 1:07 PM
@Walter:
The no_branch flag of a node has no effect on the expander icons and the codes for the folder icons you specified are not the default tree icons, I'm searching for.
@Jonathan:
Thx, you're right - the icons are in this file on the front-end: sapctree.bmp
Is there a way to use them explicit? I need to display a folder-node with the default leaf icon...