logo

class

fwt::Menu

sys::Obj
  fwt::Widget
    fwt::MenuItem
      fwt::Menu

Menu contains MenuItems. Menu is also itself a MenuItem when nested inside other Menus.

Slots

add

override This add(Widget kid)

Add a child widget. If child is null, then do nothing. If child is already parented throw ArgErr. Return this.

Source

open

This open(Widget parent, Point pos := null)

Open this menu as a popup at the coordinates relative to the parent widget. If the pos is null, then open at the location of the mouse click. This method blocks until the menu is closed.

Source