Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Display "&" in Shortcut Bar  Item
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Display "&" in Shortcut Bar Item

 Post Reply Post Reply
Author
Message
stefanadelbert View Drop Down
Groupie
Groupie


Joined: 29 October 2008
Location: Australia
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote stefanadelbert Quote  Post ReplyReply Direct Link To This Post Topic: Display "&" in Shortcut Bar Item
    Posted: 16 July 2009 at 11:51pm
I'm trying to add a docking pane item called something like "Salt & Pepper" using code like this:

Set item = DockingPane.AddItem(1000, "Salt && Pepper", frmContents.hWnd)

The Shortcut Bar item that is added is labelled "Salt & Pepper", which is good. But the Tooltip that pops up (when the shortcut bar is minimised using "Show Fewer Buttons") says "Salt && Pepper", which is wrong.

If I add the item like this:

Set item = DockingPane.AddItem(1000, "Salt & Pepper", frmContents.hWnd)

The Shortcut Bar item that is added is labelled "Salt _Pepper", which is wrong. However, the Tooltip that pops up (when the shortcut bar is minimised using "Show Fewer Buttons") says "Salt & Pepper", which is correct.

How can I get both the Shortcut Bar button label and Tooltip to display "Salt & Pepper"?

Thanks
Stefan

Windows XP SP3
Codejock 13.0.0
VB6
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: 17 July 2009 at 1:26am
Hello,
 
Thanks, Indeed we have to fix it. Please use now Tooltip property to fix it:
 
    Set ItemMail = wndShortcutBar.AddItem(1, "Salt && Pepper", frmPaneMail.hWnd)
    ItemMail.Tooltip = "Salt & Pepper"
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
Back to Top
stefanadelbert View Drop Down
Groupie
Groupie


Joined: 29 October 2008
Location: Australia
Status: Offline
Points: 31
Post Options Post Options   Thanks (0) Thanks(0)   Quote stefanadelbert Quote  Post ReplyReply Direct Link To This Post Posted: 20 July 2009 at 12:35am
Thanks, Oleg. That work-around gets around the problem.

Please consider this issue solved.

Stefan
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.156 seconds.