﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebDesktop - WebMenuBar Strange Behavior Using Client-Side Show Command</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebMenuBar-Strange-Behavior-Using-Client-Side-Show-Command/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>WebMenuBar Strange Behavior Using Client-Side Show Command</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebMenuBar-Strange-Behavior-Using-Client-Side-Show-Command/</link><pubDate>Mon, 24 May 2010 11:51:24 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;I wanted to share the workaround I found for this and the cause of the problem.&lt;/p&gt;
&lt;p&gt;When the Show() command is called, unfortunately, it doesn't correctly set the cmd object's OffsetElement which is crucial to WHERE the menu is placed when pulled down.  This was null and I had to force it to be set via the code below.&lt;/p&gt;&lt;pre&gt;oMenuBar.SelectMenu(cmd.Menu);
&lt;strong&gt;&lt;span style="color: #0070c0"&gt;cmd.Menu.OffsetElement = cmd._HtmlObj;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;cmd.Menu.Show();
&lt;/pre&gt;
&lt;p&gt;It would be ideal to have the Show() command do this to ensure the sub menu is correctly positioned.  I hope you'll provide a fix for this soon.   Thanks.&lt;/p&gt;</description></item><item><title>WebMenuBar Strange Behavior Using Client-Side Show Command</title><link>http://www.intersoftsolutions.com/Community/WebDesktop/WebMenuBar-Strange-Behavior-Using-Client-Side-Show-Command/</link><pubDate>Mon, 24 May 2010 11:10:04 GMT</pubDate><dc:creator>PRISMAY</dc:creator><description>&lt;p&gt;We have our own custom menu control that's derived from the WebMenuBar.  It has been working just great.  However, recently, we wanted to automatically pull down the drop down menus when the user hovers over them rather than having them click.  In doing this, we discovered this strange rendering problem and was hoping you can help us out please.&lt;/p&gt;
&lt;p&gt;How we pull down the menu is simple.  We override the OnMouseOver function and then call the Show command on the menu object, e.g.,&lt;/p&gt;&lt;pre&gt;    function OnMouseOver(controlId, cmd)
    {
       cmd.Menu.Show();
    }&lt;/pre&gt;
&lt;p&gt;In the attached video, you can see that when the page is loaded and we move over the item, the Show() command displayes the menu in the upper left of the browser's client area.  Clicking away and then hovering over it again may or may not finally bring it up in the right place.  You can see that after I refreshed the page, it took around 5 attempts to get the menu to pull down in the correct place.&lt;/p&gt;
&lt;p&gt;Are there any other ways to pull down the menu asided from the Show() command?  I did try running the OnClick() method but that caused an "out of memory" exception on the client side.&lt;/p&gt;
&lt;p&gt;It would be helpful to add an example of how to programmatically pull down a menu item to the WebMenu Client-side API Samples in the live samples too.  Thank you.&lt;/p&gt;</description></item></channel></rss>