Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9128221
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T07:27:52+00:00 2026-06-17T07:27:52+00:00

I defined a toolbar for a tool window by following this walk-through description .

  • 0

I defined a toolbar for a tool window by following this walk-through description.

Adding new buttons to the toolbar, and connecting them to code within my package, is no problem and works fine (So I am not looking for information on how to add simple buttons). I saw that there are other button types, like SplitDropDown and MenuButton. Both would perfectly meet my requirements. But I couldn’t find any information on how to define a sub-menu the correct way, and all my experiments failed.

This is my button definition:

<Button guid="guidVsCmdSet" id="cmdIdSplitDowndown" priority="0x106" type="SplitDropDown">
  <Parent guid="guidVsCmdSet" id="VsToolbarGroup" />
  <Icon guid="guidImages" id="bmpPic2" />
  <CommandFlag>IconAndText</CommandFlag>
  <Strings>
    <CommandName>cmdIdSplitDropdown</CommandName>
    <ButtonText>Goto Next</ButtonText>
  </Strings>
</Button>

I want to add a SplitDropDown button having some predefined/static sub-items. I guess that the visual appearance of the button would look like the “Navigate backward” button of Visual Studio. That’s what I am trying to achieve.

Does anybody know what the definition of a SplitDropDown button, having a submenu, would look like?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T07:27:53+00:00Added an answer on June 17, 2026 at 7:27 am

    It seems that the SplitDropDown and MenuButton types are no longer supported by the Visual Studio IDE (at least v11, but I haven´t tested it on earlier versions. Maybe I am wrong, but I couldn´t get these kind of buttons into my toolbar). Instead, a Menu of type Menu or MenuController can be used. The type Menu behaves like the deprecated MenuButton (even if it´s visual apperance is not exactly the same due to it´s smaller height of the button) and the type MenuController behaves like the deprecated SplitDropDown.

    So, in order to get a split drop-down I added the following Menu declaration to my VSCT file:

    <Menu guid="guidVsCmdSet" id="menuIdSubMenu" type="MenuController" priority="0x0001" toolbarPriorityInBand="0x0001">
        <Parent guid="guidVsCmdSet" id="VsToolbarGroup" />
        <CommandFlag>IconAndText</CommandFlag>
        <CommandFlag>NotInTBList</CommandFlag>
        <Strings>
            <ButtonText>My Button</ButtonText>
            <CommandName>My Button</CommandName>
        </Strings>
    </Menu>
    

    And created a new group for the drop-down commands; the group’s parent is set to the menu.

    <Group guid="guidVsCmdSet" id="VsSubMenuGroup" priority="0x0001">
        <Parent guid="guidVsCmdSet" id="menuIdSubMenu" />
    </Group>
    

    Finally, I can add ordinary buttons to that group, which will appear as menu items.

    <Button guid="guidVsCmdSet" id="cmdIdSubMenuItem1" priority="0x0001" type="Button">
        <Parent guid="guidVsCmdSet" id="VsSubMenuGroup" />
        <CommandFlag>TextOnly</CommandFlag>
        <Strings>
            <CommandName>cmdIdSubMenuItem1</CommandName>
            <ButtonText>Members</ButtonText>
        </Strings>
    </Button>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I defined a Window in WPF, into this one I put a stack panel
In eclipse I have commands defined for buttons in the main button toolbar they
I have a div defined as the following in my css file: #toolbar {
I defined a custom component and tried to use binding as the following: <ui:composition
ive defined the following and filled it with elements: vector <vector<double> > my_vector; but
I am currently adding a UISegmentedControl to the toolbar in the navigation controller programmatically
I have 4 classes, one Database helper and 3 defined like this: abstract class
i am using a MPMoviePlayerViewController inside my Project. I have defined the following appearance
I have below a code that will plot a sphere, it's proportions are defined
I need a toolbar like panel that could contain text fields and buttons, just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.