[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 - Bug: Transparent areas of PNGs to be excluded Pt1
XWidgetSoft Forum
https://bbs.xwidget.com/

Bug: Transparent areas of PNGs to be excluded Pt1
https://bbs.xwidget.com/viewtopic.php?f=3&t=3427
Page 1 of 1

Author:  yereverluvinuncleber [ July 29th, 2013, 12:33 pm ]
Post subject:  Bug: Transparent areas of PNGs to be excluded Pt1

Currently, when you click on the transparent part of an image then Xwidget recognises it as a valid event. This is a problem where you may have an odd-shaped image acting as a control. When the user clicks upon the transparent area around the control thinking they are pressing on the item layered behind it, then the click event is actually for the layer above.

I suggest that Xwidget excludes transparent areas and treats them as if they are not part of the layer.
In this way you can click on an item where it appears to exist in the image, the user would simply know that he was clicking on the things he could see.

Other widget engines do act in this way, sampling the layers in turn to see if they are transparent and allowing the click event to occur on the opaque layer beneath the mouse.

It could be controlled by a switch, allowing current behaviour to continue.

Author:  Dagedee [ July 29th, 2013, 1:40 pm ]
Post subject:  Re: Feature Request: Transparent areas of PNGs to be exclude

Perhaps you could try "Mouse Through".
mouse_through.png
mouse_through.png [ 19.49 KiB | Viewed 6465 times ]

Author:  yereverluvinuncleber [ July 29th, 2013, 1:51 pm ]
Post subject:  Re: Feature Request: Transparent areas of PNGs to be exclude

[Edited by me in the light of further testing]
Thanks for your help. Getting to know the IDE slowly.

I should think I'll be making a lot more daft recommendations and asking silly questions before I know what I am doing. Coming from YWE background where there is no IDE means I have a lot to learn.

Author:  yereverluvinuncleber [ July 29th, 2013, 2:01 pm ]
Post subject:  Re: Feature Request: Transparent areas of PNGs to be exclude

Nope that's no good, the layer is a control. It needs to function and the "mouse through" causes all events such as mouse functions to go through to the layer below regardless of whether the layer above is transparent or opaque.

I may not have made it clear enough.

Only the transparent areas need a "mouse through", the opaque areas of the image act as per normal.

Look at the slider control on this widget and you may see the issue:



The slider is a non-standard shape and it must only move when it is clicked and dragged. Clicking on any other part of the widget must not cause the slider to slide.

The YWE version of this is here if it helps to get a demo:

Author:  Dagedee [ July 30th, 2013, 10:24 am ]
Post subject:  Re: Feature Request: Transparent areas of PNGs to be exclude

Hi,
I think there is no need for any layer at all. I 've made the widget just now and it works fine (used some script from "Volume bar 3" by Blaezer http://www.deviantart.com/art/Volume-ba ... -322692337). The only thing I couldn't get is a simple hand cursor for the thumb. Maybe someone else knows how to get it.
steam_volume.gif
steam_volume.gif [ 40.42 KiB | Viewed 6451 times ]

steam_volume.rar [76.54 KiB]
Downloaded 338 times

Author:  yereverluvinuncleber [ July 30th, 2013, 1:57 pm ]
Post subject:  Re: Feature Request: Transparent areas of PNGs to be exclude

You lovely chap - you beat me to it. A bit clever using a progress bar instead of the cable image.

Mine will be out soon. Differently done.

Still though, my feature request is not about this particular widget, it is about the concept of image layers with transparent parts and whether a click should "click through" these areas.

Author:  Dagedee [ July 31st, 2013, 12:07 am ]
Post subject:  Re: Feature Request: Transparent areas of PNGs to be exclude

:) ... When I created it, I also learned something new - and now I'm curious about your solution!

Author:  qiancang [ July 31st, 2013, 1:56 am ]
Post subject:  Re: Feature Request: Transparent areas of PNGs to be exclude

the transparent part doesn't active event in my widget.

Attachments:
transparent_area.XWidgetPkg [179.75 KiB]
Downloaded 310 times

Author:  yereverluvinuncleber [ August 7th, 2013, 4:54 pm ]
Post subject:  Re: Feature Request: Transparent areas of PNGs to be exclude

Yes, your example shows that a transparent area should have a click-through BUT...

Try the slightly modified version of your package that I have modified so that it has an extra layer below, you can click on the top layer and slide the top layer from right to left within the borders of the widget, the underneath layer stays still. That's how it should work.

Now, when you click on the transparent area above my additional image then I would expect the click to click-through down to the layer below, it doesn't. You can click on a transparent area above the pipes and it ignores the click-through and responds with a click event on the layer above. You can click on the transparent areas and slide them from right to left.

Try it and see. This is unexpected behaviour to me as I expect a transparent are not to register a click regardless of how you manipulate it. It should only register a click event when an opaque section is clicked upon.

Attachments:
transparent_area.XWidgetPkg [212.43 KiB]
Downloaded 281 times
xwidgetbug01.jpg
xwidgetbug01.jpg [ 31.16 KiB | Viewed 6354 times ]

Author:  qiancang [ August 7th, 2013, 8:36 pm ]
Post subject:  Re: Feature Request: Transparent areas of PNGs to be exclude

Yes, you are right.
i will tell Tony about this bug.
Thank you very much.

Author:  yereverluvinuncleber [ May 29th, 2014, 1:30 pm ]
Post subject:  Re: Bug: Transparent areas of PNGs to be excluded

Any news on this bug?

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