How to make MainMenu accelerator underline appear?

G

Guest

Everyone is familiar with the appearance of an underline below the accelerator character on a MainMenu when the user presses the ALT key. I would like the accelerator character underline to always be shown in my MDI application

Is there a way to control this programmatically

Thanks
Dav
 
G

Guest

Herfried

The technique described at the link below worked fine for controls on child forms, but did not affect the MainMenu top level menu items. See my description posted in the 'dotnet.framework.windowsforms.controls'

Other ideas for the MainMenu

Thanks
Dav

----- Herfried K. Wagner [MVP] wrote: ----

* "=?Utf-8?B?RGF2ZSBMZWFjaA==?= said:
Everyone is familiar with the appearance of an underline below th
accelerator character on a MainMenu when the user presses the ALT key
I would like the accelerator character underline to always be shown i
my MDI application

<http://www.google.de/[email protected]>
 
Y

Ying-Shen Yu[MSFT]

Hi Babel,
I apologize for the long delay, I discussed this issue with my team mates,
To override this behavior, you would have to owner draw your main menu and
draw the menu text by yourself.
a simple way would be use some 3rd party MenuBars , you may take a look at
this link to see if any components is suitable for you.

http://www.windowsforms.net/ControlGallery/default.aspx?Category=21&tabindex
=9
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
G

Guest

Ying-Shen,

Thanks for the pointer to some 3rd party provided controls. Some look pretty good, but may be overkill for my needs.

Do you know where to get a good explanation of doing owner drawn menus?

Thanks,
Dave

----- \"Ying-Shen Yu[MSFT]\" wrote: -----

Hi Babel,
I apologize for the long delay, I discussed this issue with my team mates,
To override this behavior, you would have to owner draw your main menu and
draw the menu text by yourself.
a simple way would be use some 3rd party MenuBars , you may take a look at
this link to see if any components is suitable for you.

http://www.windowsforms.net/ControlGallery/default.aspx?Category=21&tabindex
=9
Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
Y

Ying-Shen Yu[MSFT]

Hi Babel,

You may get some ideas on how to implement a owner draw menuitems in this
link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui
/windowsuserinterface/resources/menus/usingmenus.asp

For managed code implementation, you may take a look at this sample code on
windowsforms.net, unfortunately I didn't find an article for winform.
<Graphic Menu >
http://www.windowsforms.net/ControlGallery/ControlDetail.aspx?Control=416&ta
bindex=9

Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 
G

Guest

Ying-Shen,

Thanks for the pointers.

Dave

----- \"Ying-Shen Yu[MSFT]\" wrote: -----

Hi Babel,

You may get some ideas on how to implement a owner draw menuitems in this
link:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui
/windowsuserinterface/resources/menus/usingmenus.asp

For managed code implementation, you may take a look at this sample code on
windowsforms.net, unfortunately I didn't find an article for winform.
<Graphic Menu >
http://www.windowsforms.net/ControlGallery/ControlDetail.aspx?Control=416&ta
bindex=9

Thanks!

Best regards,

Ying-Shen Yu [MSFT]
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security

This posting is provided "AS IS" with no warranties and confers no rights.
This mail should not be replied directly, "online" should be removed before
sending.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top