In this example a toolbar with a single button is created. When clicked, the Menu() functions displays a popup menu with the id mymenu. The popup menu to be displayed is defined in the menudefinitions block. It includes two items, a separator and a sub-menu.