Global actions
No edit summary
No edit summary
Line 1: Line 1:
Main menu actions are called GlobalActions.  We start by bringing up the Actions definition window:
Main menu actions are called GlobalActions.  We start by bringing up the Actions definition window:


()
[[File:Main Menu actions image 1.png|frameless]]


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


()
[[File:Main Menu actions image 2.png|frameless]]


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


()
[[File:Main Menu actions image 3.png|frameless]]


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


()
[[File:Main Menu actions image 4.png|frameless]]
 
[[File:Main Menu actions image 5.png|frameless]]


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


()
[[File:Main Menu actions image 6.png|frameless]]
 
()


and then I get this result when prototyping:
and then I get this result when prototyping:


()
[[File:Main Menu actions image 7.png|frameless]]
 
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.
 
()


To get the internal order and dividers into the menu, I need to set the 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.
[[File:Main Menu actions image 8.png|none|thumb]]
This is what I get in prototyping now:
This is what I get in prototyping now:


()
[[File:Main Menu actions image 9.png|frameless]]


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


()
[[File:Main Menu actions image 10.png|frameless]]


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


()
[[File:Main Menu actions image 11.png|frameless]]


The strategy for creating context menus is exactly the same.
The strategy for creating context menus is exactly the same.

Revision as of 07:29, 29 June 2023

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

Main Menu actions image 1.png

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

Main Menu actions image 2.png

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

Main Menu actions image 3.png

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

Main Menu actions image 4.png

Main Menu actions image 5.png

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

Main Menu actions image 6.png

and then I get this result when prototyping:

Main Menu actions image 7.png

To get the internal order and dividers into the menu, I need to set the 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.

Main Menu actions image 8.png

This is what I get in prototyping now:

Main Menu actions image 9.png

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

Main Menu actions image 10.png

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

Main Menu actions image 11.png

The strategy for creating context menus is exactly the same.

The MDriven Book - See: Action names

This page was edited 9 days ago on 06/24/2024. What links here