EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

Open DojoMenu on Mouse over

Discussion Topic

Discussion TopicMon July 24, 2017 07:00 AM

Discussion Topic

Discussion TopicThu July 27, 2017 03:38 AM

  • 1.  Open DojoMenu on Mouse over

    Posted Mon July 24, 2017 07:00 AM

    Hi,

    does anyone know how to open a DojoMenu on mouse over?

     

     

     

    Kind Regards!

    Marcel-D


  • 2.  Re: Open DojoMenu on Mouse over

    Posted Thu July 27, 2017 03:38 AM

    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