The
ExPopupMenu ActiveX control allows you to display and handle a shortcut menu
(window popup menu). Many times your application needs to provide a shortcut
menu based on a context. Well, the ExPopupMenu is easy to use, easy to
integrate into your application, and fits all your requirments. All that you
need to do is to build your menu and to invoke Show property. The control
provides a WYSIWYG editor that helps you to build your menu at design time.
Only few clicks an you have a popup menu that contains images. The control
provides few COM objects that helps user to add, remove or change the items,
at runtime. A menu item can display images, check boxes, bullets or text. The
menu's appearance can be changed to flat, to let you menu looks like popup
menus in Microsoft NET environment. The ExPopupMenu ActiveX Control
exports the following properties:
| | Name | Description | |
| | Appearance | Retrieves or sets a value that indicates the control's appearance. | |
| | Attach | Changes the window's menu bar. | |
| | BackColor | Retrieves or sets the control's background color. | |
| | CloseOnClick | Specifies whether the control is closed when user clicks. | |
| | Command | Retrieves a Command object based on menu item identifier. | |
| | Debug | Retrieves or sets a value that indicating whether the item's identifier is visible. | |
| | Detach | Detaches the window's menu, attached by the Attach method. | |
| | EventParam | Retrieves or sets a value that indicates the current's event parameter. | |
| | FlatImageWidth | Specifies the width of the column to display the icons/images when the control's MenuAppearance is exMenuFlat. | |
| | Font | Retrieves or sets the control's font. | |
| | ForeColor | Retrieves or sets a value that indicates the control's foreground color. | |
| | HAlign | Specify how the control positions the shortcut menu horizontally. | |
| | Hide | Hides the control. | |
| | HTMLPicture | Adds or replaces a picture in HTML captions. | |
| | hWnd | Retrievs the control window's handle. | |
| | Images | Sets the control's image list at runtime. The Handle should be a handle to an Image List control. | |
| | Item | Returns a specific Item object given its caption or its identifier. | |
| | ItemByData | Searches for a specific Item object given its associated data. | |
| | ItemHeight | Specifies the item's height in pixels. | |
| | Items | Retrieves a Menu object to handle adding, removing or changing items at runtime. | |
| | SelBackColor | Retrieves or sets a color that indicates the selection's background color. | |
| | SelForeColor | Retrieves or sets a color that indicates the selection's text color. | |
| | ShadowColor | Specifies the shadow color. | |
| | Show | Displays the popup menu at given coordinates, and retrieves the menu command identifier. The coordinates should be relative to container coordinates. | |
| | ShowAtCursor | Shows the popup menu at current cursor position | |
| | ShowAtWindow | Displays the popup menu relative to the given window. | |
| | VAlign | Specify how the control positions the shortcut menu vertically. | |
| | Version | Retrieves the control's version. | |