Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Column Tree Control

andreas_singer
Explorer
0 Likes
1,009

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!

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
969

Hello Andreas

At least I can answer your questions regarding the icons: run report <b>RSTXICON</b>.

Regards

Uwe

5 REPLIES 5
Read only

uwe_schieferstein
Active Contributor
0 Likes
970

Hello Andreas

At least I can answer your questions regarding the icons: run report <b>RSTXICON</b>.

Regards

Uwe

Read only

0 Likes
969

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.

Read only

0 Likes
969

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

Read only

0 Likes
969

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

Read only

andreas_singer
Explorer
0 Likes
969

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