Question

What is the name of the control that combines the function of a button and a combobox? Visual Studio's open file dialog has this control for the "Open" button. You can select "Open" or "Open With". But once you select an action, the corresponding action is taken.

Lastly, is this control available as a standard control in .NET or in Qt?

Thanks for the help!

Was it helpful?

Solution 2

It too me a while, but I found the answer for Qt. The standard QPushButton control can be used. All one has to do is use the QPushButton::setMenu(...) method (link).

OTHER TIPS

It's called a SplitButton and as far as I know, Windows Forms only includes one for toolbars. Don't know about Qt, though.

I have found this one, though. The style seems a little off1 on Windows 7 but I think for most people it should be pretty convincing.


1 No fade animation on mouse enter and leave, the drop-down arrow changes size when hovering. But at least the first one also holds true for the checkboxes in that form; and the textboxes don't get their usual blue frame when active.

I think you can name it a "DropButton" (cause it has a dropdown list, with additional actions). No its not available in .NET (Qt i didn´t know).

You have to use a 3rd Party component or build your own.

Krypton provides an implementation of such a button. And its free to use.

BTW i think you can build your own when you use a default button and add a contextmenu to it.

It's also known as a ComboButton. Look here for information. If you are using WPF and are wanting to make one, look at this and try to apply it in making the control.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top