Hi Bader,
The simplest solution to this is to use 'pointer-events="none"' on the text element (or some parent of the text element). This does have a potentially bad side effect of making the text unclickable (which can be 'fixed' by placing a proxy unfilled rect or something under the text).
bader houmad wrote:
Hello,
My problem is when I create a text element in my canvas, and when pointing on it the cursor becames of text type, and i can select the text, i don't want this functionnality, is there a way to remove the listener that does that?
I ceate the text element this way:
Element text = myDoc.createElementNS(myDoc.getDocumentElement.NamespaceURI(),"text");
Text value= myDoc.createTextNode("toto");
text.appendChild(value);
text.setAttributeNS(....);
myDoc.getDocumentElement().appendChild(text);
myCanvas.setSVGDocument(SVGDocument(myDoc));
THANKS IN ADVANCE
MSN Hotmail : choisissez votre adresse @hotmail.fr <http://g.msn.com/8HMBFRFR/2752??PS=47575> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
