Hello,
I it possible to ActivateDisplay with mouse over the Display ?
ActivateDisplay with mouse "over"
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: ActivateDisplay with mouse "over"
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"
Ok i test this
Thank you
Thank you
Re: ActivateDisplay with mouse "over"
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
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"
You can check your displays wheter is it active or not by GetAttribute(#display, id, #ATTRACTIVE).
- airsoftsoftwair
- Posts: 5433
- Joined: Fri Feb 12, 2010 2:33 pm
- Location: Germany
- Contact:
Re: ActivateDisplay with mouse "over"
@sinisrus: Intervals aren't bound to a specific display, that's why you won't get any display information in their event message.