473,387 Members | 1,859 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Menu not showing hot keys at runtime

Hi

Using VC++ 2003/winform app

I added a menu to my main form and then added "&File" as the text of the first item. At design time it appears as expected (the F in File is underlined). At runtime the F is not underlined. I don't see any settings for enabling/disabling this. What am I missing

Thank you
Joe
Nov 17 '05 #1
6 2177
Joe Thompson wrote:
I added a menu to my main form and then added "&File" as the text of the
first item. At design time it appears as expected (the F in File is
underlined). At runtime the F is not underlined. I don't see any
settings for enabling/disabling this. What am I missing?


Run your application. Press ALT. Tada! C++Builder does the same thing so
I guess it is a 'standard' of some sort. It may be down to a style bit
you could change if you were using the API directly.
Arnold the Aardvark
http://www.codeproject.com/cpp/garbage_collect.asp

Nov 17 '05 #2
I assume this is on Windows XP?

If so, this is a global setting. The keyboard shortcuts are only shown when
you press the alt key. To go back to the previous behavior right click on an
empty part of the desktop, choose settings, select the appearance tab, click
the effects button and then uncheck the 'Hide underlined letters for
keyboard navigation until I press the Alt key' checkbox.

Ronald Laeremans
Visual C++ team

"Joe Thompson" <an*******@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
Hi,

Using VC++ 2003/winform app.

I added a menu to my main form and then added "&File" as the text of the first item. At design time it appears as expected (the F in File is
underlined). At runtime the F is not underlined. I don't see any settings
for enabling/disabling this. What am I missing?
Thank you,
Joe

Nov 17 '05 #3
Hi

Thanks for the reply. You are right. But what is strange is that I can see the underlined menu items in the VS IDE without hitting the alt key so it doesn't seem to be a system wide setting. By the way, I am using Windows 2000 if that matters at all..

Thank you
Joe
Nov 17 '05 #4
Hi Ronald

I am using W2K but the same does apply. What is strange is that I see the shortcuts in the VS IDE with or without that set

Thank you
Joe
Nov 17 '05 #5
Joe Thompson wrote:
Hi,

Thanks for the reply. You are right. But what is strange is that I can
see the underlined menu items in the VS IDE without hitting the alt key so
it doesn't seem to be a system wide setting.


The IDE displays a facsimile of the form the application will show.
I don't know whether it uses actual Windows controls or not, but
the behaviour is controlled by the Designer, which is basically a
glorified drawing tool.
Arnold the Aardvark
http://www.codeproject.com/cpp/garbage_collect.asp

Nov 17 '05 #6
That is because the IDE doesn't use standard Windows menus. You can use
Spy++ to verify that.

Ronald

"Joe Thompson" <an*******@discussions.microsoft.com> wrote in message
news:90**********************************@microsof t.com...
Hi Ronald,

I am using W2K but the same does apply. What is strange is that I see the shortcuts in the VS IDE with or without that set.
Thank you,
Joe

Nov 17 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Sandy | last post by:
Hello - I have a book that illustrates pulling menu items from a Sql Server table into an ascx via a stored procedure. Is this something that is done in the real world? I do like the effect...
7
by: Dominique Gratpain | last post by:
Hi, Two questions about menu and shortcuts (in WindowsForms) : 1) I create a main menu with two items in menu bar : &menu 1 and m&enu 2 I see the accelarator key (m underline for menu 1 and...
4
by: Tom Edelbrok | last post by:
I've added a MainMenu control to my VB.NET project and typed in various items such as &File, &Exit, &Help, &About, etc. The menu works fine, including hot-keys such as <ALT>F for "File", etc, but...
4
by: CrystalMorgan | last post by:
I just noticed a strange glitch in a program I have been updating for over a month. I was working on the Menu Bar items today and noticed that the underscore to indicate a hot key was not...
2
by: Wilfried Mestdagh | last post by:
Hi, This gives me a runtime error that it is an invalid value. I tryed some other keys with same result. However I tryed some function keys and they work (whell I did not test if it work, I did...
4
by: Fred | last post by:
Hi, I have a list box with a context menu. When I right click the menu appears as expected. However when I select an option on the context menu the menu does not close. The click event on the...
3
by: hzgt9b | last post by:
Using VS2005, VB.NET, I am developing a windows app that has a DataGridView. I want to enable the display of a context menu on this DataGridView only when a specific set of keys is also pressed...
8
by: =?Utf-8?B?bWljaGFlbCBzb3JlbnM=?= | last post by:
I created a user control that handles certain keystrokes, e.g. Ctrl-C for cut, Ctrl-V for paste, plus other more specialized keystrokes. I want to list these in the menubar like any other menu...
4
by: N00b13 | last post by:
I have a great JS menu but I have to update every page each time I want to change a link. Is there a way to store my links in a file and call it so i only change that file? (what I have tried so far...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.