Page 1 of 1

ActivateDisplay with mouse "over"

Posted: Wed Jul 20, 2016 6:01 pm
by sinisrus
Hello,

I it possible to ActivateDisplay with mouse over the Display ?

Re: ActivateDisplay with mouse "over"

Posted: Fri Jul 22, 2016 11:49 am
by airsoftsoftwair
You only get mouse over events for the active display so in order to activate an inactive display on mouse over you'd need another display that is active and gets the mouse over events. Then you need to get the positions of all displays that should be activable by mouse over and see if the mouse is currently over one. Note that you need to convert the mouse over coordinates which are relative to the top-left corner of the receiving display to absolute screen coordinates of course. But it should be possible.

Re: ActivateDisplay with mouse "over"

Posted: Fri Jul 22, 2016 5:38 pm
by sinisrus
Ok i test this
Thank you

Re: ActivateDisplay with mouse "over"

Posted: Sat Jul 23, 2016 2:54 am
by sinisrus
Is it possible to get id or name of the Display Activate in fonction used by setInterval?

this code no work with "msg.display" in setInterval

Code: Select all

Function p_Interval(msg)
debugprint(msg.display)
EndFunction

SetInterval(1,Function(msg) p_Interval(msg) EndFunction,1000/5)

Re: ActivateDisplay with mouse "over"

Posted: Sun Jul 24, 2016 2:44 pm
by lazi
You can check your displays wheter is it active or not by GetAttribute(#display, id, #ATTRACTIVE).

Re: ActivateDisplay with mouse "over"

Posted: Sun Jul 24, 2016 11:34 pm
by airsoftsoftwair
@sinisrus: Intervals aren't bound to a specific display, that's why you won't get any display information in their event message.

Re: ActivateDisplay with mouse "over"

Posted: Mon Jul 25, 2016 5:18 pm
by sinisrus
ok thank