SiteKiosk Documentation
One Step Back

SKMenu Object




The SKMenu object represents a menu that can be used in a SKHTMLDialog.


Members Table

    The following table lists the members provided by the SKMenu object.

    Members
    PropertiesDescription
    DefaultItemCommand ID of the default item.
    HandleContains the handle to the menu.
    MethodsDescription
    GetCheckedDetermines whether a specified item is checked.
    GetDisabledDetermines whether an item is disabled.
    InsertStringInserts an item into the menu.
    InsertSubmenuInserts a submenu into the menu.
    RemoveItemRemoves an item from the menu.
    SetCheckedSpecifies that an item is checked.
    SetDisabledSpecifies that an item is disabled.
    ShowPopupMenuShows the popup menu.

Remarks Examples
    The following example creates a HTML dialog containing a menu with submenus.

    <SCRIPT TYPE="text/javascript">
    window.external.InitScriptInterface();
    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 = "http://www.myURL.com";
    mydialog.Title = true;
    mydialog.Menu = myMenu.Handle;
    mydialog.OnCommand = onCommand;
    mydialog.ShowDialog();
    </SCRIPT>
    

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

Back to topVolver arriba

© 1997-2011 PROVISIO - Aventura, EEUU - Muenster, Alemania
Sitekiosk.es - Grupo24®, Madrid, España -