- Main Page
- Packages
- Classes
- Files
- Related Pages

- Class List
- Class Hierarchy
- Class Members

# smjg.libs.sdwf.menu.MenuPopup Class Reference

The smjg.libs.sdwf.menu.MenuPopup class represents a popup menu. More...

Inheritance diagram for smjg.libs.sdwf.menu.MenuPopup:

List of all members.

## Public Member Functions
| this ()
| Creates a new, initially empty popup menu.
| this (HMENU h, bool autoDelete=false)
| Constructs a MenuBar object from a pre-existing Windows menu bar.
MenuItem | parentItem ()
| The item in the parent menu that opens this menu as a submenu.
Menu | parent ()
| The parent menu of this menu.
## Protected Member Functions
override bool | shouldDelete ()

## Detailed Description

The smjg.libs.sdwf.menu.MenuPopup class represents a popup menu.

A popup menu can be used:

- as a submenu of a MenuBar, making it a drop-down menu
- as a submenu of a MenuPopup, making it a cascading menu
- by calling the showPopup method, making it a context menu.

Since:
  0.5

## Constructor & Destructor Documentation

smjg.libs.sdwf.menu.MenuPopup.this | ( |  | ) |

Creates a new, initially empty popup menu.

smjg.libs.sdwf.menu.MenuPopup.this | ( | HMENU | h,
|  | bool | autoDelete = `false` |
| ) |  |  |

Constructs a MenuBar object from a pre-existing Windows menu bar.

Parameters:

  | h | handle of the menu bar.
  | autoDelete | whether SDWF will automatically destroy the menu bar when the MenuPopup object is garbage-collected.

Reimplemented from smjg.libs.sdwf.menu.Menu.

## Member Function Documentation

MenuItem smjg.libs.sdwf.menu.MenuPopup.parentItem | ( |  | ) |

The item in the parent menu that opens this menu as a submenu.

Menu smjg.libs.sdwf.menu.MenuPopup.parent | ( |  | ) |

The parent menu of this menu.

override bool smjg.libs.sdwf.menu.MenuPopup.shouldDelete | ( |  | ) | `[protected]`

Reimplemented from smjg.libs.sdwf.menu.Menu.

The documentation for this class was generated from the following file:

- menu.d