How can I make CommandMenuButton auto-expand?

 From:  Michael Gibson
8918.2 In reply to 8918.1 
Hi Yuan, this should do it in the current MoI v4 beta:

code:
				<moi:CommandMenuButton menu="FileMenu.htm" icon="icons/FileIcon.png"
					onmouseenter="
						var e = document.createEvent( 'MouseEvent' );
						e.initMouseEvent( 'mousedown', false, false, window, 0, window.event.screenX, window.event.screenY, window.event.clientX, window.event.clientY, false, false, false, false, 1, null );
						this.dispatchEvent( e );
					"><moi:Text textid="File"/></moi:CommandMenuButton>


For V3 use onmouseover="" to trigger it instead of onmouseenter=""