Active touch buttons
a_riot42
Posts: 1,624
I am wondering if anyone has used active touch buttons. The docs say this:
Active touch: This touch style limits the active touch area to the visible area of the button. Areas of the button that are totally transparent will not respond to a press. For example, if you created a totally transparent button with no border and an icon, only the icon would respond to a press. Similarly, if a transparent button has a visible border but no icon, only the border will respond to a press. Touching the transparent areas of the button does not active the button.
Note: Active Touch requires total transparency on the button in order to work. To make a button totally transparent, set the Overall Opacity (state) setting to 0. If Overall Opacity is set to any other value (for partial transparency), Active Touch will not work.
I don't get the last part. If you set the opacity to 0 then the image disappears! Any other setting and apparently active touch doesn't work. Can anyone make sense of this for me?
Thanks,
Paul
Active touch: This touch style limits the active touch area to the visible area of the button. Areas of the button that are totally transparent will not respond to a press. For example, if you created a totally transparent button with no border and an icon, only the icon would respond to a press. Similarly, if a transparent button has a visible border but no icon, only the border will respond to a press. Touching the transparent areas of the button does not active the button.
Note: Active Touch requires total transparency on the button in order to work. To make a button totally transparent, set the Overall Opacity (state) setting to 0. If Overall Opacity is set to any other value (for partial transparency), Active Touch will not work.
I don't get the last part. If you set the opacity to 0 then the image disappears! Any other setting and apparently active touch doesn't work. Can anyone make sense of this for me?
Thanks,
Paul
0
Comments
Jeff
This is exactly what I am doing and either I am doing something wrong or have found a bug. If a couple of non square rooms have their button boundaries overlap but not the images, then the correct button press happens unless you hit the same button twice. Then the overlapped button gets activated. If you look at the image attached you will see what I mean. I added borders so you can see how they overlap. When touching one and then the other it works fine and the correct room highlights. If you press on the highlighted room the other button that is overlapping gets highlighted even though the area of that button that was touched has no visible area. I thought active touch would prevent this behavior and only allow the image that has any visible area to get activated.
Many thanks,
Paul
The tpd button property opacity must be 255, not 0 for sure. I think their reference is to your graphic and to make the transparency areas 'not partial'
Also, is your graphic a .png? I thought there were issues with transparency (not opacity) with .jpg and .bmps.
HTH
http://graphicssoft.about.com/cs/faq/a/transparency.htm
Paul