[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4668: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4670: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4671: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4672: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
XWidgetSoft Forum :: View topic - Possible to fade on mouseover with mouse through enabled?
XWidgetSoft Forum
https://bbs.xwidget.com/

Possible to fade on mouseover with mouse through enabled?
https://bbs.xwidget.com/viewtopic.php?f=8&t=6869
Page 1 of 1

Author:  wicked [ March 12th, 2018, 8:22 pm ]
Post subject:  Possible to fade on mouseover with mouse through enabled?

I've created a simple widget which displays the time and date in the corner of my screen at all times (using keep topmost). I currently have it set for "mouse through" so that it doesn't cause any issues with mouse interaction with whatever is behind it.

What I would really like would be for it to disappear on mouseover (or at least to greatly lower the opacity) and then reappear when the mouse is moved away. Unfortunately, it seems like OnEnter and OnLeave events aren't fired when a widget is set to mouse through, and without setting it up that way the nearly invisible widget catches mouse clicks that I would like to have handled by the underlying window.

Is there some alternative to OnEnter and OnLeave that still fires when a widget is set to mouse through? Or alternately, is there some way to propagate mouse clicks to the window or screen behind the widget?

Author:  Jimking [ March 13th, 2018, 9:53 am ]
Post subject:  Re: Possible to fade on mouseover with mouse through enabled

Hello. The mouse through option exist for this reason. To make a widget/layer 'invisible' to avoid or allow interactions with anything exists behind it. So obviously the mouse enter/leave functions will not work because the one automatically erases the other. So I don't think that can be done all together..

Maybe the things can be done from the 'inside' allowing the function under certain circumstances like the mouse over or pressing a key to activate hide etc
I have these two examples that use this kind of 'truck's

https://jimking.deviantart.com/art/Rain ... -467534607
https://jimking.deviantart.com/art/Brok ... -452784862

I had help when I made then and the script was not created by me.
Let me think though and see if your thought can be done..
Keep in mind though that the keep on top doesn't forbid you to interact with what is behind when you have transparent widgets. So I think that the Lock position and the change opacity on mouse enter/leave will be fine.

Author:  wicked [ March 13th, 2018, 12:32 pm ]
Post subject:  Re: Possible to fade on mouseover with mouse through enabled

Thanks! I will take a look at your examples once I am at my PC.

I forgot to mention the complication that if the widget reaches zero opacity (which seems necessary to interact with whatever is behind it without the mouse through option), that triggers the OnLeave event. So fading out OnEnter and fading back in OnLeave results in a flickering widget which is both difficult to see past and nearly impossible to interact through, negating both parts of what I am trying to accomplish.

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/