2007 Jan 26 11:38 AM
Hello,
i'm using the method:
data: tree type ref to cl_gui_alv_tree,
new_key type lvc_nkey,
l_node_text type lvc_value,
ls_node_layout type lvc_s_layn,
lt_item_layout type lvc_t_layi.
call method tree->add_node
exporting
i_relat_node_key = p_tree_key
i_relationship = cl_gui_column_tree=>relat_last_child
is_outtab_line = p_line
is_node_layout = ls_node_layout
it_item_layout = lt_item_layout
i_node_text = l_node_text
importing
e_new_node_key = new_key.
Now, i want to display an icon instead of text.
include <icons>.
data ok_icon like icons value icon_checked.
lt_item_layout-t_image = ok_icon.
working fine, the problem is, now i'm getting the standard tooltip from the icon, but i want to get my own description. Does anyone know how i cant overwrite the standard tooltip.
2007 Jan 28 2:22 PM
Hello Marek
The is a simple trick to get your own tooltip. This trick works for others controls (e.g. ALV grid), too. The icon ICON_CHECKED has '@01@' as internal representation. Thus, simply define your icon as:
ls_item_layout-t_image = '@01Q My own Tooltip! @'.In general the logic is:
'@<2-digit code>Q <own tooltip text> @'Leave a <b>space</b> between the tooltip text and the preceeding Q and the succeeding @ character. I did not check but believe the length of the tooltip text is limited to about 30 characters.
Regards
Uwe
Hello Marek
If the solution works how about appreciating it?
Regards
Uwe
2007 Jan 28 2:22 PM
Hello Marek
The is a simple trick to get your own tooltip. This trick works for others controls (e.g. ALV grid), too. The icon ICON_CHECKED has '@01@' as internal representation. Thus, simply define your icon as:
ls_item_layout-t_image = '@01Q My own Tooltip! @'.In general the logic is:
'@<2-digit code>Q <own tooltip text> @'Leave a <b>space</b> between the tooltip text and the preceeding Q and the succeeding @ character. I did not check but believe the length of the tooltip text is limited to about 30 characters.
Regards
Uwe
2007 Jan 29 10:18 AM
2007 Feb 16 2:42 AM
Hello Marek
If the solution works how about appreciating it?
Regards
Uwe
2024 Dec 23 8:28 PM
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |