|
static |
A factory to create a main menu with specified theme and on click event handler.
menu_items | an array xtd::forms::menu_item which will contain the created menu items. |
theme | The theme of menu item image. |
on_click | an event handler to respond on lick event. |
menu_index | sub_menu_index | menu_item | sub_menu_item |
---|---|---|---|
0 | file | ||
0 | 0 | file | new |
0 | 1 | file | open |
0 | 2 | file | separator1 |
0 | 3 | file | save |
0 | 4 | file | save_as |
0 | 5 | file | separator2 |
0 | 6 | file | |
0 | 7 | file | print_preview |
0 | 8 | file | separator3 |
0 | 9 | file | exit |
1 | edit | ||
1 | 0 | edit | undo |
1 | 1 | edit | redo |
1 | 2 | edit | separator1 |
1 | 3 | edit | cut |
1 | 4 | edit | copy |
1 | 6 | edit | paste |
1 | 6 | edit | separator2 |
1 | 7 | edit | select_all |
2 | tools | ||
2 | 0 | tools | customize |
2 | 1 | tools | options |
3 | help | ||
3 | 0 | help | contents |
3 | 1 | help | index |
3 | 2 | help | search |
3 | 3 | help | separator1 |
3 | 4 | help | about |