The menubutton class

The menubutton is a specialization of the button widgets. It allows for attaching a menu that will be displayed when pressing the button. The menubutton must be used to pack menus in a menubar.
  interface menubutton : button { 
\c{\fbox{menubutton}}
menubutton(char* p, char* options = ""); menubutton(widget* w, char* p, char* options = ""); void menu(char* s);
\c{// to attach menu}
void menu(class menu* m); };

slide: The menubutton widget