The cswmMenuBarInit function is used to initialize the rendered MenuBar DHTML.

Parameters

Settings
This is an optional parameter that allows you to override the default MenuBar settings. If this parameter is not supplied, the settings configured on the server are used. The properties recognized on this object are:

[int] MenuBarLeft
The left absolute position (in pixels) of the MenuBar.

[int] MenuBarTop
The top absolute position (in pixels) of the MenuBar.

[string] DockLocation
The docked state of the MenuBar, either "undocked", "top" or "bottom".

[string] GroupSelected
The Group (by Group.ID value) to select when the MenuBar is running in TabStrip mode.

Return Value

none

Remarks

This function is predominantly used in the Window.Load event. It initializes the MenuBar DHTML when AbsoluteDragEnabled or AbsoluteDockEnabled are true, making it ready for these operations in the browser. It is also used when the MenuBar is operating in TabStrip mode.

Example

[HTML]

<body onload="cswmMenuBarInit();">

[ASP / ASP.NET]

<body onload="<%Response.Write(WebMenu.GenerateOnLoadEvent())%>">

[JavaScript]

<SCRIPT>
  window.load=MyLoadEventHandler;

  function MyLoadEventHandler()
  {
    // Server-side method
    <%Response.Write(WebMenu.GenerateOnLoadEvent())%>;

    // Client-side method
    cswmMenuBarInit();
  }
</SCRIPT>

		

Copyright © Coalesys, Inc.