none
Ribbon.xml Menu Location Question RRS feed

  • Question

  • Hello there,

    In Powerpoint 2010 on the Home tab.  The New Slide button looks like a splitButton, the Lower section of the button displays the menu items directly under the button.

    When I try to copy that button to my custom tab the New Slide (using gallery idMso="SlideNewGallery") the New Slide menu items fly out to the right.  Here is my xml

               

       <splitButton id="t" size="large" getEnabled="GetEnabled">
                        <button idMso="SlideNew"/>
                        <menu>
                          <gallery idMso="SlideNewGallery" />
                        </menu>

                     </splitButton>

    I would like to get the New Slide Menu items to appear directly under the splitter, is this possible

    thanks


    Wednesday, November 14, 2012 3:57 PM

Answers

  • Hi Matty

    When I use the following in my Ribbon XML I see exactly the same behavior as with the built-in control:

        < control idMso="SlideNewGallery" size="large" />


    Cindy Meister, VSTO/Word MVP, my blog

    Sunday, November 18, 2012 8:36 AM
    Moderator

All replies

  • Hi Matty

    Try using <control idMso="SlideNewGallery" /> and see if that works the way you expect?


    Cindy Meister, VSTO/Word MVP, my blog

    Wednesday, November 14, 2012 5:41 PM
    Moderator
  • Hi Cindy

    using "control" instead of "gallery" gives me the same result

    thanks

    Wednesday, November 14, 2012 6:35 PM
  • Hi Matty

    I'm sorry, I guess I don't understand what it is you're asking, exactly.

    There's no way to change how a built-in menu works. A gallery will always "fly out". There's no way to make a gallery's selection appear like menu buttons.

    If you want to use the "New Slide" button exactly as it appears on the Home tab then the best way is to not try to embed it in a custom control. Then you should (probably - PowerPoint isn't my area of specialization) use <control idMso="SlideNewGallery" /> right at the top level, without anything else?

    Otherwise, try asking the PowerPoint specialists on the Communities site:
    http://answers.microsoft.com/en-us/office/forum/powerpoint?tm=1352984604981

    Even the programmers tend to congregate there and rarely show up on the MSDN forums...


    Cindy Meister, VSTO/Word MVP, my blog

    Thursday, November 15, 2012 1:03 PM
    Moderator
  • Hi Mattyoumell,

    If I understood you clear, you want your splitbutton behave the same as the builtin splitbutton. 

    As far as I'm concerned it's impossible, if there's a solution to this I'll be glad to see it.


    Regards,
    Fermin
    What's life without whimsy?

    Thursday, November 15, 2012 1:06 PM
  • ok thanks all for looking

    Friday, November 16, 2012 3:32 PM
  • Hi Matty

    When I use the following in my Ribbon XML I see exactly the same behavior as with the built-in control:

        < control idMso="SlideNewGallery" size="large" />


    Cindy Meister, VSTO/Word MVP, my blog

    Sunday, November 18, 2012 8:36 AM
    Moderator
  • Hi Cindy,

    When I use 

    <control idMso="SlideNewGallery" size="large" />

    instead of 

    <gallery idMso="SlideNewGallery" size="large" />

    VS warns me with "The size attribute is not declared." 

    I've no idea where I've done wrong.


    Regards,
    Fermin
    What's life without whimsy?

    Thursday, November 22, 2012 11:53 AM
  • Hi Mattyoumell,

    You can take Cindy's last suggestion. Cindy means that replace the whole block code into

    <control idMso="SlideNewGallery" size="large" />

    rather than the line in <menu> block.

    Hope it helps.

    Best regards,


    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, November 22, 2012 11:57 AM
    Moderator
  • Hi Fermin,

    You can take a look at my reply to Mattyoumell.

    Hope it helps.

    Best regards,


    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, November 22, 2012 12:00 PM
    Moderator
  • Thank you Cindy and Quist.

    You guys are great. 


    Regards,
    Fermin
    What's life without whimsy?

    Thursday, November 22, 2012 12:37 PM