R: Problem with text selection

2004-01-16 Thread Fabio Biscaro
> I worked with text selection and i have some questions: > > 1) In javascript I can use "selectSubString" to select a string in a > text tag. What can I do to remove text selection? I tried > selectSubString(0,0) but this command, without any sense, selects the > wh

Re: Problem with text selection

2004-01-16 Thread Thomas DeWeese
Fabio Biscaro wrote: I worked with text selection and i have some questions: 1) In javascript I can use "selectSubString" to select a string in a text tag. What can I do to remove text selection? I tried selectSubString(0,0) but this command, without any sense, selects the whole line!

Problem with text selection

2004-01-16 Thread Fabio Biscaro
I worked with text selection and i have some questions: 1) In javascript I can use "selectSubString" to select a string in a text tag. What can I do to remove text selection? I tried selectSubString(0,0) but this command, without any sense, selects the whole line 2) I got a bug!

Re: R: Text selection

2003-12-01 Thread Thomas DeWeese
ially impossible to access from JavaScript. -Messaggio originale- Da: Thomas DeWeese [mailto:[EMAIL PROTECTED] Inviato: lunedì 1 dicembre 2003 13.24 A: Batik Users Oggetto: Re: Text selection Fabio Biscaro wrote: Hi, I would like to know how i can get text selection in svg. Click and

R: Text selection

2003-12-01 Thread Fabio Biscaro
Excuse me, I did the wrong question: Is there a way, in javascript, to get the text that is selected in batik? Thanks, Fabio -Messaggio originale- Da: Thomas DeWeese [mailto:[EMAIL PROTECTED] Inviato: lunedì 1 dicembre 2003 13.24 A: Batik Users Oggetto: Re: Text selection Fabio

Re: Text selection

2003-12-01 Thread Thomas DeWeese
Fabio Biscaro wrote: Hi, I would like to know how i can get text selection in svg. Click and drag on text? It should just work. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Text selection

2003-12-01 Thread Fabio Biscaro
Title: Messaggio Hi, I would like to know how i can get text selection in svg.   Thanks, Fabio

Re: Text Selection when events registered?

2003-09-04 Thread Thomas DeWeese
Denis Bohm wrote: Denis Bohm wrote: ... "A text selection operation starts when all of the following occur:" ... "- no links or events have been assigned to the 'text' , 'tspan' or 'textPath' , element(s) (or their ancestors) associated with the

Re: Text Selection when events registered?

2003-09-04 Thread Denis Bohm
> > Denis Bohm wrote: > ... > > > "A text selection operation starts when all of the following occur:" > > > ... > > > "- no links or events have been assigned to the 'text' , 'tspan' or > > > 'textPath' , e

Re: Text Selection when events registered?

2003-09-04 Thread Denis Bohm
> Denis Bohm wrote: ... > > "A text selection operation starts when all of the following occur:" > > ... > > "- no links or events have been assigned to the 'text' , 'tspan' or > > 'textPath' , element(s) (or their ances

Re: Text Selection when events registered?

2003-09-04 Thread Thomas DeWeese
Denis Bohm wrote: I have some SVG that includes text elements in a group that has an onclick event handler. But when I move over the text I get a selection cursor and can select text. From section 10.16 of the SVG spec it seems like text selection should not be possible on the text elements

Text Selection when events registered?

2003-09-04 Thread Denis Bohm
I have some SVG that includes text elements in a group that has an onclick event handler. But when I move over the text I get a selection cursor and can select text. From section 10.16 of the SVG spec it seems like text selection should not be possible on the text elements because of the onclick

Re: Text selection overlay

2002-11-21 Thread George Armhold
ou're talking about either JSVGCanvas or JSVGComponent, you can control whether text selection is enabled by specifying selectableText=false in the constructor. Is this the only possibility? is it possible to turn off text selection in Batik? ...without modifying the source code?

RE: Text selection overlay

2002-11-21 Thread Barbisch, Martin
Thanks for the quick response! > If you're talking about either JSVGCanvas or JSVGComponent, you can > control whether text selection is enabled by specifying > selectableText=false in the constructor. Is this the only possibility? > > is it possible to turn off tex

Re: Text selection overlay

2002-11-21 Thread George Armhold
If you're talking about either JSVGCanvas or JSVGComponent, you can control whether text selection is enabled by specifying selectableText=false in the constructor. Barbisch, Martin wrote: Hello all, is it possible to turn off text selection in Batik? Thanks, M

Text selection overlay

2002-11-21 Thread Barbisch, Martin
Hello all, is it possible to turn off text selection in Batik? Thanks, Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

TEXT selection dilemma - getCharNumAtPosition

2002-10-18 Thread Baron, Randy {PRG~Basel}
(not sure if this message got through the first time...)   Hi,    I hope this could be a trivial problem for someone on the list, because it’s not for me.    I am trying to use SVGTextElement methods getStartPositionOfChar and getCharNumAtPosition to find out which character in a string

RE: TEXT selection dilemma - getCharNumAtPosition

2002-10-17 Thread Thierry Kormann
> java.lang.RuntimeException: !!! > SVGOMTextContentElement.getStartPositionOfChar() > at > org.apache.batik.dom.svg.SVGOMTextContentElement.getStartPositionOfChar( > Unknown Source) > at > svgstuff.SVGTextSelectTest$OnMouseClick.handleEvent(SVGTextSelectTest.ja > va:155) >

TEXT selection dilemma - getCharNumAtPosition

2002-10-17 Thread Baron, Randy {PRG~Basel}
Hi, I hope this could be a trivial problem for someone on the list, because it's not for me. I am trying to use SVGTextElement methods getStartPositionOfChar and getCharNumAtPosition to find out which character in a string was clicked on (code below). The only thing I get though is a runtim