Xojo remove menu bar from msgbox9/25/2023 ![]() ![]() TextSeparator )) // Add a sub menu Var submenu As New DesktopMenuItem ( "SubMenu" ) submenu. AddMenu ( New DesktopMenuItem ( DesktopMenuItem. AddMenu ( New DesktopMenuItem ( "Test 3" )) // Add a Separator base. AddMenu ( New DesktopMenuItem ( "Test 2" )) base. ![]() AddMenu ( New DesktopMenuItem ( "Test 1" )) base. The following ConstructContextualMenu event handler builds a menu with three menu items plus a submenu with three additional menu items. See the example of a contextual menu in the following section. If the event was fired because of a non-mouse event, then x and y are both set to -1. The parameters x and y are the mouse locations. ![]() If you return True, the contextual menu is displayed. If you return False, the event is passed up the parent hierarchy. Any items you add to Base will be shown as menu items. Depending on platform, it might be in the MouseUp or MouseDown event and it might be a right+click or by pressing the contextual menu key on the keyboard, for example.īase is analogous to the menu bar for the contextual menu. This event handler is the recommended way to handle contextual menus because this event figures out whether the user has requested the contextual menu, regardless of how they did it. This event is called when it is appropriate to display a contextual menu for the control.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |