Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default RibbonX, Keytips, Menu Controls and Underscores?

Hey All,

I have noticed that, unlike the Button control, with a Menu control, when
you specify the Keytip and include an ampersand in the label, the letter
following the ampersand does not get underscored. The same is true with a
Splitbutton control.

Does anyone have a workaround or a way to force the underscore?

Should I assume that this is because Microsoft sometimes automatically
renames / ignores the requested Keytip?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default RibbonX, Keytips, Menu Controls and Underscores?

Hi TMC

You can do this

label="&SendMail add-in for Outlook"


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"TMC" wrote in message ...
Hey All,

I have noticed that, unlike the Button control, with a Menu control, when
you specify the Keytip and include an ampersand in the label, the letter
following the ampersand does not get underscored. The same is true with a
Splitbutton control.

Does anyone have a workaround or a way to force the underscore?

Should I assume that this is because Microsoft sometimes automatically
renames / ignores the requested Keytip?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default RibbonX, Keytips, Menu Controls and Underscores?


I have tried your suggestion with a Menu Control and a Splitbutton control
but it did not underline the letter. Try the below:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="rxtabCustomTab"
insertAfterMso="TabHome"
label="&amp;Custom Junk"

<group id="rxgrpCustomJunk"
label="&amp;Custom Junk"

<menu id="rxmnuTest"
label="&amp;Some Buttons"

<button id="rxbtnButton1"
label="&amp;A Button"/
<button id="rxbtnButton2"
label="&amp;B Button"/
</menu
</group
</tab
</tabs
</ribbon
</customUI


It works on the Button controls but not the others.

Am I missing something?



"Ron de Bruin" wrote in message
...
Hi TMC

You can do this

label="&amp;SendMail add-in for Outlook"

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"TMC" wrote in message
...
Hey All,

I have noticed that, unlike the Button control, with a Menu control, when
you specify the Keytip and include an ampersand in the label, the letter
following the ampersand does not get underscored. The same is true with
a Splitbutton control.

Does anyone have a workaround or a way to force the underscore?

Should I assume that this is because Microsoft sometimes automatically
renames / ignores the requested Keytip?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default RibbonX, Keytips, Menu Controls and Underscores?

Hi TMC

I only used it on Buttons so it is possible that it not work for other controls.

Sorry

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"TMC" wrote in message ...

I have tried your suggestion with a Menu Control and a Splitbutton control
but it did not underline the letter. Try the below:

<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui"
<ribbon
<tabs
<tab id="rxtabCustomTab"
insertAfterMso="TabHome"
label="&amp;Custom Junk"

<group id="rxgrpCustomJunk"
label="&amp;Custom Junk"

<menu id="rxmnuTest"
label="&amp;Some Buttons"

<button id="rxbtnButton1"
label="&amp;A Button"/
<button id="rxbtnButton2"
label="&amp;B Button"/
</menu
</group
</tab
</tabs
</ribbon
</customUI


It works on the Button controls but not the others.

Am I missing something?



"Ron de Bruin" wrote in message
...
Hi TMC

You can do this

label="&amp;SendMail add-in for Outlook"

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"TMC" wrote in message
...
Hey All,

I have noticed that, unlike the Button control, with a Menu control, when
you specify the Keytip and include an ampersand in the label, the letter
following the ampersand does not get underscored. The same is true with
a Splitbutton control.

Does anyone have a workaround or a way to force the underscore?

Should I assume that this is because Microsoft sometimes automatically
renames / ignores the requested Keytip?

Thanks


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom menu groups don't appear on ribbonX when no workbook is ope Misbah Excel Programming 0 February 6th 08 04:13 PM
Exotic Menu Controls Pflugs Excel Programming 0 June 25th 07 08:05 PM
Add item to 'Cell' context menu with XML (RibbonX) Vincent_6636 Excel Programming 2 June 11th 07 12:49 AM
Hide controls in a worksheet menu bar clara Excel Programming 1 March 28th 07 07:08 PM
Menu Controls Index micklloyd[_2_] Excel Programming 2 January 26th 06 05:34 AM


All times are GMT +1. The time now is 09:45 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"