Control the time a ToolTipText is displayed

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

Re: Control the time a ToolTipText is displayed

Postby Jan Aleman » Tue Dec 06, 2011 6:48 pm

danny.richadson wrote:You also use inline java code:

Packages.javax.swing.ToolTipManager.sharedInstance().setInitialDelay(<some_delay);
Packages.javax.swing.ToolTipManager.sharedInstance().setDismissDelay(<some_delay);


Regards,

Danny

Danny how about:

application.setUIProperty(APP_UI_PROPERTY.TOOLTIP_DISMISS_DELAY, 40000)
application.setUIProperty(APP_UI_PROPERTY.TOOLTIP_INITIAL_DELAY, 10)
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Re: Control the time a ToolTipText is displayed

Postby Peter de Groot » Wed Dec 07, 2011 9:25 am

Jan Aleman wrote:
danny.richadson wrote:You also use inline java code:

Packages.javax.swing.ToolTipManager.sharedInstance().setInitialDelay(<some_delay);
Packages.javax.swing.ToolTipManager.sharedInstance().setDismissDelay(<some_delay);


Regards,

Danny

Danny how about:

application.setUIProperty(APP_UI_PROPERTY.TOOLTIP_DISMISS_DELAY, 40000)
application.setUIProperty(APP_UI_PROPERTY.TOOLTIP_INITIAL_DELAY, 10)


Jan,

When I try your sample I get the following error : Java class "com.servoy.j2db.scripting.info.UICONSTANTS" has no public instance field or method named "TOOLTIP_DISMISS_DELAY"

We are using Servoy 5.2.9

Regards,

Peter
User avatar
Peter de Groot
 
Posts: 215
Joined: Thu Jan 10, 2008 8:38 pm
Location: Not sure...

Re: Control the time a ToolTipText is displayed

Postby Jan Aleman » Wed Dec 07, 2011 9:28 am

It's a 6.x feature
Jan Aleman
Servoy
Jan Aleman
 
Posts: 2083
Joined: Wed Apr 23, 2003 9:49 pm
Location: Planet Earth

Re: Control the time a ToolTipText is displayed

Postby Peter de Groot » Wed Dec 07, 2011 9:31 am

Ok, that explains it, until we migrate to Servoy 6 we will use Danny's tip.

Regards
User avatar
Peter de Groot
 
Posts: 215
Joined: Thu Jan 10, 2008 8:38 pm
Location: Not sure...

Previous

Return to How To

Who is online

Users browsing this forum: No registered users and 6 guests