Button to choose between 2+ Options

Hi,

I use often backup and restore some files via buttons.

How can I configure ONE button, which offers "Backup" and "Restore" via popup and then execute specified operations? Actually I use two buttons for each option, but ist would be nice to have this in one user command.

Make a menu and put the two buttons inside of it.

(Menus can appear on toolbars and look like normal buttons, if you want.)

That's what I did, but I joped there's an option to do it the way I like :cry:

I thought that would do what you wanted? :slight_smile:

What's missing? Do you want the option of doing both things at once or something?

I just want a button which does following:

Choose:Option1|Option2
Option1:Execute Command(s)
Option2:Execute Command(s)

Just like jumping in .bat-files (but don't want to use).

Actually I have a usercommand for each option.

Isn't that what a menu with two options gives you?

You click the button which opens the menu, giving you the choice of Option 1 and Option 2, then you click one of the options (menu items) and their commands are executed.

Yes yes yes, but I'd like to have a better overlook over my usercommands and also I like to know, if such a thing is possible.

If you put in in the top menu, where "file", "edit", "view" etc. is, as a menu, you can put both functions into the submenu & navigate per keyboard between them. If you use descriptive names, you can identify them easily.

Have you looked at using the @keydown modifier for your button commands? Where pressing the button does one command, holding SHIFT down and pressing the button does something else, and holding CTRL down while pressing the button does a third thing.

Or perhaps a three button button where a left mouse press does one thing, a right mouse press does something else, and a middle mouse press does a third thing.