Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Solved: Unexpected Tooltips
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Solved: Unexpected Tooltips

 Post Reply Post Reply
Author
Message
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post Topic: Solved: Unexpected Tooltips
    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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Baldur View Drop Down
Senior Member
Senior Member


Joined: 22 November 2006
Location: Germany
Status: Offline
Points: 244
Post Options Post Options   Thanks (0) Thanks(0)   Quote Baldur Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2008 at 12:45pm
oh. ok then :)
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.039 seconds.