W3C home > Mailing lists > Public > www-svg@w3.org > October 2007

(unknown charset) Re: MouseClick: Limiting polyline area to line only

From: (unknown charset) ~:'' ありがとうございました。 <j.chetwynd@btinternet.com>
Date: Tue, 30 Oct 2007 10:57:16 +0000
Message-Id: <BA7D7210-A26D-4FD5-A534-3093DAA32443@btinternet.com>
Cc: (unknown charset) www-svg List <www-svg@w3.org>
To: (unknown charset) "Eckert, Johannes" <johannes.eckert.ext@siemens.com>


could you attach a reduced testcase?
sample attached, however it might not be suitable for your  

this list is for issues regarding the specifications, which keeps it  
busy ~:"


Jonathan Chetwynd
Accessibility Consultant on Media Literacy and the Internet

<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
<style type="text/css" id="css"><![CDATA[
a {fill:none; stroke-width:10; stroke:#cca}
a:focus {stroke:#f00}
a:hover {stroke:#0f0}
<a xlink:href="http://www.peepo.co.uk">
<circle cx="84" cy="100" r="13" />
<polyline points="5 20 20 20 25 10 35 30" />

On 29 Oct 2007, at 09:07, Eckert, Johannes wrote:

Hey guys,

I'm searching for some help cause I don't know a solution. Thus I  
hope to find one here :-/

My problem: I'm using SVG graphics within my own C# application  
written under .NET. For this I also use a control called  
SVGViewControl from Mobiform (http://www.mobiform.com/products/ 
svgviewplus/svgviewplus.htm). Up to now everything works fine.

One of the advantages of the SVGViewControl is that it supports C# as  
script language within the graphics. So I used this and integrated a  
MouseClick event. Works also fine so far.

But when I use polyline elements then it's like they are all  
intersecting. When clicking on empty space, a polyline element is  
returned. This doesn't make sense until the area of such a polyline  
element is defined by the points as a rectangle not only the line  

Is there any attribute I can set for polyline elements to change this  
behaviour or what else to do? I'm really at a loss :(

Hope you all understand what I mean. My mother tongue is German so I  
may express some stuff differently than you guys from UK or US or  
whereever ;)

Thanks for any help in advance!

Best regards,


Here an example of my polyline elements:
     <style type="text/css"><![CDATA[.HMIPolyLine {fill: none;  
stroke:black; stroke-width:1;stroke-dasharray:none ;stroke- 
dashoffset:none; stroke-linecap:butt}

   <polyline points="1910 930, 1910 540, 4120 540, 4120 2850, 3390  
2850, 3390 2750, " id="Polyline207" class="HMIPolyLine">

       <cge:ObjectReference id="DomainObject"  
ObjectName="ACLineSegment" ClassName="ACLineSegment" />

Received on Tuesday, 30 October 2007 10:57:41 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:12 UTC