Print Page | Close Window

Solved: Unexpected Tooltips

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=11378
Printed Date: 16 June 2025 at 7:12pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Solved: Unexpected Tooltips
Posted By: Baldur
Subject: Solved: Unexpected Tooltips
Date Posted: 10 July 2008 at 7:24am
Previous Version 11.2.2;
 
If i don't need tooltips for some controls, i cleared them with:
Control.Tooltip = ""
 
Now in version 12.0.0, the tooltip shows automaticly the caption as tooltip.
This makes no sense !!
I can't set a space to this, because i than get an empty tooltipwindow.
 
If some captions are selveexplaind, i don't need a tooltip.
Other controls, like icon-only-controls, i set a tooltip for description.
 
The Options.ToolBarScreenTips=false is not the solution.



Replies:
Posted By: Oleg
Date Posted: 10 July 2008 at 8:42am
Think previously you didn't use Actions but now you use them.
 
If so, you need set "" for Action tooltip also:
 
CommandBars.Actions(ID_FILE_NEW).ToolTipText = ""
 


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Baldur
Date Posted: 10 July 2008 at 9:05am
I already deal with actions (is the best way to work with commandbars).
 
Now, after i add my controls, i set the action.tooltiptext to "" and it's work as expected.


Posted By: Oleg
Date Posted: 10 July 2008 at 9:14am
... just note
 
if you use Actions don't set captions of controls when you add them.
 
better first create all actions with captions and tooltips you need and then add controls with empty captions - they will use captions of actions.
 
for example:
 
 
CommandBars.Actions.Add ID_FILE_NEW, "&New", "New", "Create a new document", "File"
CommandBars.Actions.Add ID_FILE_OPEN, "&Open", "Open", "Open an existing document", "File"
...
ToolBar.Controls.Add(ControlType, ID_FILE_NEW, "")


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: Baldur
Date Posted: 10 July 2008 at 9:32am
Thats not, what i do.
 
All controls are defined by designer, except specifics.
Actions are activated by designer.
 
After LoadDesignerBars, i have to add some temporary controls, like CustomControls or RecentDocuments or anything else.
 
Your tip with actions are correct, because for all new controls actions are immediatly available.
So i can access the action after adding a new control and can set now the tooltiptext.
The caption is automaticly taken from the Controls.Add-method.
 
That's work fine for me.


Posted By: Oleg
Date Posted: 10 July 2008 at 12:45pm
oh. ok then :)

-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net