Hi,
this seems to work:
DojoMenu.js:
"hover" : function(event){ var x = event.clientX; var y = event.clientY; var mouseButton = 0; if(mouseButton < 0 || mouseButton > 2) { return; } var ev = document.createEvent("MouseEvent"); var el = document.elementFromPoint(x,y); ev.initMouseEvent( "mousedown" // type: M�gliche Werte: click, mousedown, mouseup, mouseover, mousemove, mouseout. , true // canBubble: whether or not the event can bubble. , true // cancelable: whether or not the event's default action can be prevented. , window // view: the Event's AbstractView. You should pass the window object here. , null // detail: the Event's mouse click count. , x // screenX: the Event's screen x coordinate. , y // screenY: the Event's screen y coordinate. , 0 // clientX: the Event's client x coordinate. , 0 // clientY: the Event's client y coordinate. , false // ctrlKey: whether or not control key was depressed during the Event. , false // altKey: whether or not alt key was depressed during the Event. , false // shiftKey: whether or not shift key was depressed during the Event. , false // metaKey: whether or not meta key was depressed during the Event. , mouseButton // button: the Event's mouse event button. 0 = left, 1 = middle, 2 = right , null // relatedTarget: the Event's related EventTarget. Only used with some event types (e.g. mouseover and mouseout). In other cases, pass null. ); el.dispatchEvent(ev); }
DojoMenu.egl:
function hover (e event in);
RUI Handler:
function hover(e event in) MainMenu DojoMenu = e.widget; MainMenu.hover(e); end
Kind Regards!
Marcel-D