Menu Property

The Menu property contains the handle of the used menu.


    SKHtmlDialog.Menu [=long]
Possible Values
    Long value that specifies or retrieves the menu handle.

    The property is read/write.
    Set this property to 0 to remove the menu from the dialog.
    The following example creates a HTML dialog containing a menu with submenus.

    <SCRIPT TYPE="text/javascript">
    function onCommand(ai_Code, ai_CommandID, al_Handle)
       switch (ai_CommandID)
          case 1: alert('Hello'); break;
          case 3: alert('Bye'); break;
    mySubMenu = SiteKiosk.SiteKioskUI.CreatePopupMenu();
    mySubMenu.InsertString(3,1, "Say Hello", "");
    mySubMenu.InsertString(4,3, "Say Bye", "");
    myMenu = SiteKiosk.SiteKioskUI.CreateMenu();
    myMenu.InsertSubmenu(2,4, mySubMenu.Handle, "MessageBox", "");
    myMenu.InsertString(5,2, "Exit", "");
    mydialog = SiteKiosk.SiteKioskUI.CreateHTMLDialog();
    mydialog.URL = "";
    mydialog.Title = true;
    mydialog.Menu = myMenu.Handle;
    mydialog.OnCommand = onCommand;

Applies to
    SiteKiosk v5.5 (and later versions).

Back to top