VCF::PopupMenu Class Reference
This class is for creating popup menus, sometimes referred to as a context, or contextual menu.
More...
#include <vcf/ApplicationKit/PopupMenu.h>
Inheritance diagram for VCF::PopupMenu:
List of all members.
Detailed Description
This class is for creating popup menus, sometimes referred to as a context, or contextual menu.
Generally it used when the user right clicks on a control.
Constructor & Destructor Documentation
| VCF::PopupMenu::PopupMenu |
( |
Control * |
control = NULL |
) |
|
|
| VCF::PopupMenu::PopupMenu |
( |
Component * |
owner |
) |
|
|
| VCF::PopupMenu::PopupMenu |
( |
const String & |
name |
) |
|
|
| virtual VCF::PopupMenu::~PopupMenu |
( |
|
) |
[virtual] |
|
Member Function Documentation
| virtual void VCF::PopupMenu::destroy |
( |
|
) |
[protected, virtual] |
|
|
|
called by the free() method.
Should be overriden and any clean up code performed here
Reimplemented from VCF::Menu. |
| void VCF::PopupMenu::init |
( |
|
) |
[protected] |
|
|
|
This "pops up" a context menu and shows it to the user.
If the user clicks on a menu item in the popup menu, that menu item is returned. Keep in mind that the menu item is "owned" by the popup menu instance, and is destroyed when the popup menu is. - Returns:
- MenuItem returns a pointer to the menu item that the user selected, or NULL if the user dismissed the popup menu without clicking on any menu item.
|
| void VCF::PopupMenu::setControl |
( |
Control * |
control |
) |
|
|
Member Data Documentation
The documentation for this class was generated from the following file: