Microsoft KB Archive/286500

= Windows Media Administrator Drop-Down Menus Are Misaligned with Internet Explorer 5.5 or Later =

Article ID: 286500

Article Last Modified on 6/23/2005

-

APPLIES TO


 * Microsoft Windows Media Services 4.0
 * Microsoft Windows Media Services 4.1

-



This article was previously published under Q286500



SYMPTOMS
When you use the Windows Media Administrator to administer a Windows Media Server, the drop-down menus may not be aligned correctly if the computer that you installed the Administrator on uses Microsoft Internet Explorer version 5.5 or later.



CAUSE
The horizontal and vertical coordinate system changed in Internet Explorer 5.5. This change is by design.



WORKAROUND
Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements. To work around this problem, you can modify the HTML files that the Windows Media Administrator uses. On a Microsoft Windows 2000-based computer, these files are located in the C:\Winnt\System32\Windows Media\Server folder. On Windows NT 4.0-based and Windows 9x-based computers, these files are located in the C:\Program Files\Windows Media Components\Server folder.

To realign the drop-down menus, you must add an offset to the code that shows the menus. Each of the files that are listed below display an effected menu. To edit the files, use an HTML editor or a text editor such as Notepad. Search for &quot;ShowMenu&quot; to find the ShowMenu subroutine, which is the portion that needs to be edited. The code for each file adds the offsets to the MenuX and MenuY parameters in the PopUp function.

NOTE: Before you edit any file, it is strongly recommended that you back up the originals to a safe location.

Vrtop.htm
Sub ShowMenu(menu) Dim MenuX, MenuY If menu = &quot;OnDemand&quot; Then Call top.code.ObjectToIEClientCoords( document.all.BTN_DEMAND, MenuX, MenuY ) Call Menu1.PopUp( CInt( MenuX + 240), CInt( MenuY + 30) ) ElseIf menu = &quot;Broadcast&quot; Then Call top.code.ObjectToIEClientCoords( document.all.BTN_BROADCAST, MenuX, MenuY ) Call Menu2.PopUp( CInt( MenuX + 240), CInt( MenuY +30) ) End If End Sub

Stations.htm
Sub ShowMenu Dim MenuX, MenuY Call top.code.ObjectToIEClientCoords( document.all.BTN_STATIONS, MenuX, MenuY ) Call stMenu.PopUp( CInt( MenuX + 240 ), CInt( MenuY + 30) ) End Sub

Prgmgr.htm
Sub ShowMenu(menu) Dim MenuX, MenuY If menu = &quot;Streams&quot; Then Call top.code.ObjectToIEClientCoords( document.all.BTN_STREAMS, MenuX, MenuY ) Call strMenu.PopUp( CInt( MenuX + 240), CInt( MenuY + 505) ) ElseIf menu = &quot;Programs&quot; Then Call top.code.ObjectToIEClientCoords( document.all.BTN_PROGRAMS, MenuX, MenuY ) Call progMenu.PopUp( CInt( MenuX + 240), CInt( MenuY + 505) ) End If End Sub

Filemgr.htm
Sub ShowMenu(menu) Dim MenuX, MenuY If menu = &quot;Streams&quot; Then Call top.code.ObjectToIEClientCoords( document.all.BTN_STREAMS, MenuX, MenuY ) Call strMenu.PopUp( CInt( MenuX + 240), CInt( MenuY + 30) ) ElseIf menu = &quot;Programs&quot; Then Call top.code.ObjectToIEClientCoords( document.all.BTN_PROGRAMS, MenuX, MenuY ) Call progMenu.PopUp( CInt( MenuX + 240), CInt( MenuY + 30) ) End If End Sub



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

Additional query words: netshow nsadmin wms align admin

Keywords: kbbug kbpending KB286500

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.