New version of PopupMenu based on inheritance.