Print Page | Close Window

Add menu item and specify an underlined character?

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=10687
Printed Date: 07 October 2024 at 10:57pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Add menu item and specify an underlined character?
Posted By: bruceh
Subject: Add menu item and specify an underlined character?
Date Posted: 19 May 2008 at 1:43pm
How can I display an underlined letter for an accelerator key in a programatically added menu item? 
 
The code I am using to add a menu item reads:
 
m_pBrowseToolBar = (CXTPToolBar*)pCommandBars->Add("Browse", xtpBarFloating)
 
Are underlined letters in this context not supported?  ("&Browse" does not do it.)
 
Is there a workaround?  Do I need to, for example, include the menu item statically with Visible set to false, then dynamically set the Visible property true?
 
Thank you.


-------------
Bruce Haley
Seattle, Washington
USA



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