Menu not showing hot keys at runtime

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Joe said:
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
 
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 said:
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?
 
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
 
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
 
Joe said:
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
 
That is because the IDE doesn't use standard Windows menus. You can use
Spy++ to verify that.

Ronald

Joe Thompson said:
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.
 
Back
Top