It is currently Thu Sep 09, 2010 6:36 am




Post new topic Reply to topic  [ 3 posts ] 
 Turn off tooltips 
Author Message
General
General

Joined: Fri Aug 03, 2007 11:39 am
Posts: 416
Location: Devon, England
Post 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
Profile
Moderator
Moderator

Joined: Sun Apr 02, 2006 2:46 pm
Posts: 229
Location: Sacramento, CA
Post 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
Profile WWW
General
General

Joined: Fri Aug 03, 2007 11:39 am
Posts: 416
Location: Devon, England
Post 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)

_________________
Al


Sat Jul 24, 2010 1:58 am
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


Who is online

Users browsing this forum: scott_stc, vahterto and 0 guests


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

Search for:
Jump to: