Global actions
No edit summary
No edit summary
Line 43: Line 43:
The strategy for creating context menus is exactly the same.
The strategy for creating context menus is exactly the same.
[[Category:The MDriven Book]]
[[Category:The MDriven Book]]
[[Category:Actions]]

Revision as of 20:06, 18 June 2023

Main menu actions are called GlobalActions.  We start by bringing up the Actions definition window:

()

We add some GlobalActions and give them names based on what we want them to do in the end:

()

If I run this as is with MDriven prototyping I get this main menu:

()

But we want to organize the menu, so we create some Menu-Groups:

()

Now I can decide in what group my actions should be:

()

()

and then I get this result when prototyping:

()

To get the internal order and dividers into the menu I need to set Divider group for the items, if this differs between two actions they will be separated by a divider. If it is the same between two actions the actions will be sorted on the “Sort order in Group” value within the group.

()

This is what I get in prototyping now:

()

If I want to organize the actions in sub menus I do this by declaring a new Menu group:

()

And I use that group on the actions I want in the submenu:

()

The strategy for creating context menus is exactly the same.

This page was edited 51 days ago on 03/14/2024. What links here