Sunday, May 30, 2010

Defining Main menu actions

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

 

image

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

image

If I run this as is in WECPOF I get this main menu:

image

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

image

image

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

Declarative actions in a model driven environment

 

and then I get this result when running WECPOF:

image

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.

image

This is what I get in WECPOF now:

image

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

image

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

image

The strategy for creating context menus is exactly the same.

Context menus show up in Grid components, and in the header of WECPOF windows:

image

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home

 
Contact Us | Terms of Use | Privacy Statement © 2009 CapableObjects