MPopupMenu

Description

MPopupMenu is a pop up menu appearing on a right click event.

A simple example

1    //Create a pop up menu
2    MPopupMenu menu = new MPopupMenu(container,container);
3
4    //Adds some items into the menu     
5    new MMenuItem(container,menu,"new1");
6    new MMenuItem(container,menu,"new2");
7    new MMenuItem(container,menu,"close");

API

  • Constructors
MPopupMenu(MWindow container) Constructs a new instance of this class given its parent window
MPopupMenu(MWindow container, MonoiComponent component) Constructs a new instance of this class given its parent window and a monoiComponent where the pop_up menu could appear
MPopupMenu(MWindow container, MMenuItem menuItem) Constructs a new instance of this class given its parent window and a menuItem who would be attached
MPopupMenu(MContainer container) Constructs a new instance of this class given its parent container
MPopupMenu(MContainer container, MonoiComponent component) Constructs a new instance of this class given its parent container and a monoiComponent where the pop_up menu could appear
MPopupMenu(MContainer container,MMenuItem menuItem) Constructs a new instance of this class given its parent container and a menuItem who would be attached
  • Methods
Menu getMenu() Gets a MPopupMenu
void setPopupStyle() Sets a menu with Popup's style
void setDropDownStyle() Sets a menu with DropDown's style
MonoiComponent getComponent() Gets a MonoiComponent
void setComponent(MonoiComponent component) Sets a MonoiComponent
  • See also superclasses
    • MonoiComponent

MPopupMenu.jpg (8 kB) Frédéric ESNAULT, 02/27/2012 12:58 pm