From batik-users-return-10496-apmail-xmlgraphics-batik-users-archive=xmlgraphics.apache.org@xmlgraphics.apache.org Wed Jun 07 08:05:30 2006 Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 44646 invoked from network); 7 Jun 2006 08:05:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Jun 2006 08:05:29 -0000 Received: (qmail 74301 invoked by uid 500); 7 Jun 2006 08:05:29 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 74185 invoked by uid 500); 7 Jun 2006 08:05:28 -0000 Mailing-List: contact batik-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-users@xmlgraphics.apache.org Delivered-To: mailing list batik-users@xmlgraphics.apache.org Received: (qmail 74174 invoked by uid 500); 7 Jun 2006 08:05:28 -0000 Delivered-To: apmail-xml-batik-users@xml.apache.org Received: (qmail 74169 invoked by uid 99); 7 Jun 2006 08:05:28 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2006 01:05:28 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ap-batik-users@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Jun 2006 01:05:27 -0700 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1Fnt2E-0003bT-H4 for batik-users@xml.apache.org; Wed, 07 Jun 2006 10:05:02 +0200 Received: from 58.69.6.197.pldt.net ([58.69.6.197.pldt.net]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Jun 2006 10:05:02 +0200 Received: from philliprs_yahu by 58.69.6.197.pldt.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 07 Jun 2006 10:05:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: batik-users@xml.apache.org From: Phillip Ganir Subject: Changing Mouse Cursor Date: Wed, 7 Jun 2006 07:55:14 +0000 (UTC) Lines: 30 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: main.gmane.org User-Agent: Loom/3.14 (http://gmane.org/) X-Loom-IP: 58.69.6.197 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)) Sender: news X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I'm having problems on changing the appearance of the mouse cursor when an event happens. I have an svg element on a JSVG Canvas, rect to be exact, and I want to change the cursor whenever I click on the parts of the rectange. I want crosshair if I click the middle, and w-resize and e-resize when clicking the edge. I already have my event listeners on the rectangle and i want it to go with the mousemove event. I tried including a cursor attribute in the rect element, such as: and I change the attribute's value to a type I want in the event handler: ( (Element) evt.getTarget() ).setAttribut("cursor", "w-resize" ); Is there anything I'm doing wrong or anything I'm lacking to do? I also tried including cursor and pointer-events (with value "fill") attribute at the svg (root) element and also the latter to the rect element, but nothing changes. I would really appreciate answers from you. Thank you very much in advance. Phillip --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org