You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Lewis Keen <ye...@gmail.com> on 2006/03/04 12:24:17 UTC

Disable select text...

Yes it really is that simple :P I am creating a button in my SVG that
says "connect", but it looks a bit naff atm because you end up
selecting the text then it recognizes the click. I just want to
prevent the user from selecting that particular piece of text.

Any ideas?

Thanks in advance,

Lewis Keen

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: Disable select text...

Posted by Lewis Keen <ye...@gmail.com>.
That's great :) Thanks a lot.

On 3/4/06, thomas.deweese@kodak.com <th...@kodak.com> wrote:
> Hi Lewis,
>
>         Try adding 'pointer-events="none"' to the text element (this will
> make it insensitive
> to all events).
> You can also 'hide' the text element under a rect with fill="none" and
> pointer-events="fill".
>
>
> "Lewis Keen" <ye...@gmail.com> wrote on 03/04/2006 06:24:17 AM:
>
> > Yes it really is that simple :P I am creating a button in my SVG that
> > says "connect", but it looks a bit naff atm because you end up
> > selecting the text then it recognizes the click. I just want to
> > prevent the user from selecting that particular piece of text.
> >
> > Any ideas?
> >
> > Thanks in advance,
> >
> > Lewis Keen
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> > For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: Disable select text...

Posted by th...@kodak.com.
Hi Lewis,

        Try adding 'pointer-events="none"' to the text element (this will 
make it insensitive
to all events).
You can also 'hide' the text element under a rect with fill="none" and 
pointer-events="fill".


"Lewis Keen" <ye...@gmail.com> wrote on 03/04/2006 06:24:17 AM:

> Yes it really is that simple :P I am creating a button in my SVG that
> says "connect", but it looks a bit naff atm because you end up
> selecting the text then it recognizes the click. I just want to
> prevent the user from selecting that particular piece of text.
> 
> Any ideas?
> 
> Thanks in advance,
> 
> Lewis Keen
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org