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

dynpro button with tooltip

Former Member
0 Likes
2,640

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

12 REPLIES 12
Read only

Former Member
0 Likes
1,642

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

Read only

0 Likes
1,642

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

Read only

Former Member
0 Likes
1,642

Hi Mathias,

In the button properties window put in the quick info text and it will appear during the run time...

Cheers

JK

Read only

Former Member
0 Likes
1,642

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

Read only

0 Likes
1,642

Hi,

i tried that what ever you did, but it is not coming.

may be some thing else we missed.

regards

vijay

Read only

Former Member
0 Likes
1,642

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

Read only

0 Likes
1,642

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

Read only

0 Likes
1,642

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

Read only

0 Likes
1,642

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

Read only

0 Likes
1,642

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

Read only

0 Likes
1,642

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

Read only

0 Likes
1,642

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