Ed Jay
9/3/2014 1:11:00 AM
On Wed, 03 Sep 2014 10:29:07 +1000, Andrew Poulos
<ap_prog@hotmail.com> wrote:
>On 3/09/2014 10:01 AM, Thomas 'PointedEars' Lahn wrote:
>> Andrew Poulos wrote:
>>
>>> Is there a graphics library that will allow me to draw a shape (say, a
>>> hollow ellipse) on screen and still allow me to click through any
>>> transparent bit of the shape to interact with an element behind it?
>>
>> I do not know. ISTM you are having an XY problem again.
>
>Here's the scenario: I have an elearning course. A page may have a Help
>button. If you click the button then Help for the page will appear. The
>form for the Help might be to circle an object on the page and to then
>display an instruction to click that object.
>
>I've been using wz_jsgraphics.js to draw the circle but I'd rather
>something that looked, and is, better. Things like Canvas, VML, and SVG
>all give better looking results but don't allow for clicking through
>transparent areas. (And I'm not that interested in coding something that
>captures clicks and passes them on).
>
Z-index is your friend here.
I have a similar button that resides on the bottom layer of a 5-canvas
stack. The button is attached as a child and has a high z-index to set
it standalone above all the other layers.
--
Joey