We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

How to stop &''s being treated as accels in menu strings

Thread ID:





17899 Aug 19,2004 06:00 AM Aug 20,2004 09:37 AM Windows Forms 3
Tags: Tools
Administrator [Syncfusion]
Asked On August 19, 2004 06:00 AM

I am prog generating menu items from user enetered strings and they have &''s in them, which unfortunately get converted to accels underbars when put into the menu, is there a style/way of stopping this on new BarItems...

Administrator [Syncfusion]
Replied On August 19, 2004 02:44 PM

Hi Peterainbow, If you wish to display an ampersand symbol ("&") in the BarItem''s Text then use double ampersand ("&&") in its position. For example : If you set the BarItem.Text = "Item&&", then it will be displayed as "Item&". Please try this and let me know if you need further assistance. Thanks for your interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Administrator [Syncfusion]
Replied On August 20, 2004 05:27 AM

hmmm ot as simple as that i''ll have to check for that it''s only a single & -> && and not && -> &&&&, ho hum, would be useful to have a style on the baritem in future release.

Administrator [Syncfusion]
Replied On August 20, 2004 09:37 AM

Hi Peterainbow, Thanks for your suggestion. Please note that this is how the .NET MenuItem.Text behaves too. Our XPMenus framework is closely modelled on the .NET MainMenu (and VS.Net''s menus), and we have maintained similar behavior for consistency purposes. However, we could consider this as a feature request for a future release of Essential Suite. We appreciate your feedback, and thanks for your continued interest in Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.