Joined: Fri Aug 03, 2007 11:39 am Posts: 416 Location: Devon, England
Turn off tooltips
I'm using tooltips to display help on each control in a new system. These tooltips can be quite big, so it would be nice once each user gets used to the system if they could turn them off with a menu option.
Is it possible to turn off tooltips system-wide?
_________________ Al
Fri Jul 23, 2010 12:00 pm
Travis.Cox
Moderator
Joined: Sun Apr 02, 2006 2:46 pm Posts: 229 Location: Sacramento, CA
Re: Turn off tooltips
Sure, in scripting you can do the following:
Code:
from javax.swing import ToolTipManager ToolTipManager.sharedInstance().setEnabled(0)
Turn it off by using a value of 0 and on with a value of 1.
_________________ Travis Cox
Inductive Automation
Technical Support Rep.
Fri Jul 23, 2010 2:28 pm
AlThePal
General
Joined: Fri Aug 03, 2007 11:39 am Posts: 416 Location: Devon, England
Re: Turn off tooltips
Thanks Travis, that worked perfectly. The code I finally used to toggle tooltips on and off was as follows:
Code:
from javax.swing import ToolTipManager if ToolTipManager.sharedInstance().isEnabled(): ToolTipManager.sharedInstance().setEnabled(0) else: ToolTipManager.sharedInstance().setEnabled(1)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum