![]() |
Solved: Unexpected Tooltips |
Post Reply ![]() |
Author | |
Baldur ![]() Senior Member ![]() Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
![]() ![]() ![]() ![]() ![]() 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.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
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 |
|
![]() |
|
Baldur ![]() Senior Member ![]() Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
... 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 |
|
![]() |
|
Baldur ![]() Senior Member ![]() Joined: 22 November 2006 Location: Germany Status: Offline Points: 244 |
![]() ![]() ![]() ![]() ![]() |
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.
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
oh. ok then :)
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |