Tooltip duration

Discussions about product bugs & problems!
Note: This is no replacement for the Official ETM Support!
Search

Post Reply
8 posts • Page 1 of 1
User avatar
joost.lijster@siemens.com
Posts: 19
Joined: Wed Sep 21, 2016 1:51 pm

Tooltip duration

Post by joost.lijster@siemens.com »

Hi all,

For a project we are trying to implement some extended tooltip functionality, such as dynamically enabling / disabling tooltips and editing the display time of a tooltip.

According to the help-file, this should be easily done: the function toolTipDuration should be able to edit display time.
Description
Specifies how long a tooltip is shown. The time is specified in milliseconds. If the duration value is -1, the duration is calculated depending on the length of the tooltip.

Assignment
Simple graphics objects: plain text, line, free line, polyline, arc, ellipse, frame;

Complex graphics objects: cascade, button, check box, option box, combo box, selection list, text field, spin-button;

Code: Select all

main()
{
   
   this.toolTipText("This is a tooltip");
   int t = 1000;
   this.toolTipDuration(t);
}
Unfortunately (and this is why I posted this thread in bugs/problems), this function seems to be absent from whatever graphic I draw.

There is a workaround, using the QT stylesheet. The snippet changes the tooltip duration of QT graphics and works like a charm:

Code: Select all

* { qproperty-toolTipDuration: 1000;}
Problem: stylesheets are not applied to simple graphic objects, such as rectangles or lines. Therefore, this tooltip duration is not editable.

Is there any way I can edit the tooltip duration for simple graphic objects, as described in the helpfile? (currently running 3.16P015)

User avatar
kilianvp
Posts: 443
Joined: Fri Jan 16, 2015 10:29 am

Re: Tooltip duration

Post by kilianvp »

only ewo's have a toolTipDuration
im.PNG
im.PNG (9.65 KiB) Viewed 9140 times
Attachments
im.PNG
im.PNG (9.65 KiB) Viewed 9140 times

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Tooltip duration

Post by leoknipp »

As far as I know the behaviour of the tooltips is configured in the operating system and WinCC OA uses these settings.

Best Regards
Leopold Knipp
Senior Support Specialist

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Tooltip duration

Post by leoknipp »

The screenshot in the first posting is related to the property "toolTipDuration" for the BarChart3D EWO. It is not a common property which can be used for all graphical objects.
We have informed our documentation group that they shall check the description and remove the information in the end of the description.

The property "toolTipDuration" can only be used for EWOs as it is a QT property.

Best Regards
Leopold Knipp
Senior Support Specialist

RJM1987
Posts: 11
Joined: Mon Feb 24, 2020 5:06 am

Re: Tooltip duration

Post by RJM1987 »

Hi,

I had the same inital question too - the help documentation in 3.17 still has an entry for "tooltipDuration" but it has no mention of only being applicable to EWOs. In fact, the last section of the documentation specifically states:


Assignment


Simple graphics objects: plain text, line, free line, polyline, arc, ellipse, frame;

Complex graphics objects: cascade, button, check box, option box, combo box, selection list, text field, spin-button;

I interpreted that as those objects would have the tooltipDuration property, but alas, I was wrong!

User avatar
leoknipp
Posts: 2926
Joined: Tue Aug 24, 2010 7:28 pm

Re: Tooltip duration

Post by leoknipp »

There is only 1 entry in the Documentation which refers to "tooltipDuration" and this is part of the BarChart3D EWO documentation.

Best Regards
Leopold Knipp
Senior Support Specialist

User avatar
joost.lijster@siemens.com
Posts: 19
Joined: Wed Sep 21, 2016 1:51 pm

Re: Tooltip duration

Post by joost.lijster@siemens.com »

Sorry for the late reply, but he text in the first post taken straight out of the help documentation.
tooltipduration.png
leoknipp wrote: Mon May 04, 2020 9:12 am There is only 1 entry in the Documentation which refers to "tooltipDuration" and this is part of the BarChart3D EWO documentation.

Best Regards
Leopold Knipp
Senior Support Specialist

User avatar
joost.lijster@siemens.com
Posts: 19
Joined: Wed Sep 21, 2016 1:51 pm

Re: Tooltip duration

Post by joost.lijster@siemens.com »

leoknipp wrote: Tue Dec 17, 2019 4:56 pm The screenshot in the first posting is related to the property "toolTipDuration" for the BarChart3D EWO. It is not a common property which can be used for all graphical objects.
We have informed our documentation group that they shall check the description and remove the information in the end of the description.

The property "toolTipDuration" can only be used for EWOs as it is a QT property.

Best Regards
Leopold Knipp
Senior Support Specialist
Well, as I mentioned, ALL QT items respond to this, if set by the stylesheet. This includes widgets (buttons etc). Unfortunately the function is absent within the scripting. Stylesheets are the workaround, but this does not apply to simple graphics (these are not style-able).

Post Reply
8 posts • Page 1 of 1