‎2006 Jan 24 11:39 AM
hi,
i have created a button on a dynpro in screen painter. now i want to have a tooltip for this button (when you have a mouse over the button, the rectangular yellow box with some help text should appear).
in the properties of the button i assigned the property 'TooltipText' and assigned Text: value from variable.
In my top-include i created a string variable and assigned its text-value. But the tooltip does not appear.
Any ideas?
thanx, matthias
‎2006 Jan 24 11:47 AM
Hi,
just use quick info attribute option in the screen layout of <b>button attributes</b>
you can see quickinfo , write the text in that..
regards
vijay
‎2006 Jan 24 11:50 AM
Hi,
just double click on the button , in the window
you can find the<b> quick info</b> option under <b>Icon name</b>
regards
vijay
‎2006 Jan 24 11:49 AM
Hi Mathias,
In the button properties window put in the quick info text and it will appear during the run time...
Cheers
JK
‎2006 Jan 24 12:10 PM
hi,
i see - it works with a regular button. Unfortunately i hav e a button, which i declared the name of in the top include as "g_butt(24) type c", because i change the text of the button-caption depending on its state. For such a button i have no quickinfo field in the properties window. That is why I fiddled around with those other atributes, which you also get from the properties window (blue arrow).
does anybody know about this approach? what does the toolTip field mean, if it does not bring across a toolTip?
regards, matthias
ps: and of course points for both of you
‎2006 Jan 24 12:17 PM
Hi,
i tried that what ever you did, but it is not coming.
may be some thing else we missed.
regards
vijay
‎2006 Jan 24 12:18 PM
Hi Matthias,
What you can do is go to se51, element list tab,
v=click on the properties button for your Screen Button element, set the 'TooltipText" property as you want it,Maintain text choose the radio button, Value from variable and that variable you can conditionally populate in your program.
REgards,
Ravi
‎2006 Jan 24 1:16 PM
hi ravi,
that's exactly what i did and what i tried to describe in my first post. But it does not help. In the Debugger I see, that my variable for the tooltip is being populated correctly, but the tooltip doesn't show up.
any more ideas?
ta, matthias
‎2006 Jan 24 1:30 PM
hi,
i did what ever you did, but it is not working.
and one more thing i am facing a dump when i am trying to change the tool tip text variable in the screen element list after activating everything. it is not letting me to change the tool tip variable. try that.
it is giving dump.
first run it once , and then go to se51 and change you will observe a dump
regards
vijay
Message was edited by: Vijay Babu Dudla
‎2006 Jan 24 2:28 PM
Hi Vijay Babu Dudla,
i don't really understand what you are saying. So you tried to go the tooltip way my way and it causes a dump?
By the way, I am not changing the tooltip variable.
What I am doing is this:
1)
and I declare a variable for the button, also in top-include, for the button itself like this:
DATA g_butt(14) type c.g_butt is the name of my button in screenpainter. i don't provide text for the button. instead the text (caption) is set during runtime.
2)
But this is nothing to do with the tooltip - i only change the caption-text of the button. The tooltip is not supposed to be changed (at least in my case).
3) I declare a variable<b> (in top-include, not in screen-painter)</b> for the tooltip
DATA g_tooltip type string value 'here goes my tooltip'.- then in screen-painter i assign this var. to the attribute tooltip of the button g_butt.
<i>and the result of this is: it does not work B-]
But it'd be nice if it would...</i>
regards matthias
‎2006 Jan 24 2:39 PM
hi,
just go to SE51 and then try to change the tool tip variable which you have assigned in the element list of the button.
(try to remove and assign new one). this is where i got the Dump.
regards
vijay
‎2006 Jan 24 3:13 PM
hi vijay,
i tried what you said, but i don't get a dump - i mean, i am not sad because i don't get a dump...
but the pronblem remains unsolved.
regards, matthias
‎2010 Mar 15 7:17 PM
Hi Matthias,
the post is a little bit old - but did you find a solution? I have the same problem with an output field.
Thanks,
Torsten