The Popup Menu Object - HTML2EXE Programming Interface

Document Path: Home Page / Programming / HTML2EXE / Interfaces / Popup Menu Object  
Properties Property
Methods AddCommand AddSeparator CheckCommand EnableCommand Popup
Properties

Property

Value VARIANT
Arguments:
  • BSTR name
Access Get, Put
Notes For storing run-time variables
Methods

AddCommand

Return Value
Arguments:
  • unsigned short cmdID
  • BSTR text
Notes

AddSeparator

Return Value
Notes

CheckCommand

Return Value
Arguments:
  • unsigned short cmdID
  • BOOL checked
Notes

EnableCommand

Return Value
Arguments:
  • unsigned short cmdID
  • VARIANT_BOOL enabled
Notes

Popup

Return Value long (user clicked command id)
Arguments:
  • long x (Optional, default(-1))
  • long y (Optional, default(-1))
  • Object menuSelectCallbackFunc (Optional, default(0))
Notes
  • If x and y are all less than zero, the popup menu will be displayed at the current cursor position
  • The callback function will be called when the mouse pointer is on or leaving a menu item.
  • Callback Protype (Javascript)
    function OnMenuItemSelect(cmdid)
    {
    //cmdID 0=mouse pointer not on the menu, -1=the menu is closed, other=command id the mouse pointer is on.
    }