Print Page | Close Window

Display "&" in Shortcut Bar Item

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=14763
Printed Date: 04 July 2024 at 12:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Display "&" in Shortcut Bar Item
Posted By: stefanadelbert
Subject: Display "&" in Shortcut Bar Item
Date 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



Replies:
Posted By: Oleg
Date 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


Posted By: stefanadelbert
Date Posted: 20 July 2009 at 12:35am
Thanks, Oleg. That work-around gets around the problem.

Please consider this issue solved.

Stefan



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