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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

17899 Aug 19,2004 10:00 AM UTC Aug 20,2004 01:37 PM UTC WinForms 3
loading
Tags: Tools
Administrator [Syncfusion]
Asked On August 19, 2004 10:00 AM UTC

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 06:44 PM UTC

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 09:27 AM UTC

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 01:37 PM UTC

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.

CONFIRMATION

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.

Warning Icon 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.Close Icon

;