From batik-users-return-10534-apmail-xmlgraphics-batik-users-archive=xmlgraphics.apache.org@xmlgraphics.apache.org Sat Jun 10 12:55:29 2006 Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 8450 invoked from network); 10 Jun 2006 12:55:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 10 Jun 2006 12:55:29 -0000 Received: (qmail 85249 invoked by uid 500); 10 Jun 2006 12:55:28 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 85230 invoked by uid 500); 10 Jun 2006 12:55: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 85219 invoked by uid 500); 10 Jun 2006 12:55:27 -0000 Delivered-To: apmail-xml-batik-users@xml.apache.org Received: (qmail 85216 invoked by uid 99); 10 Jun 2006 12:55:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 Jun 2006 05:55:27 -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; Sat, 10 Jun 2006 05:55:27 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Fp2zU-0000BZ-S3 for batik-users@xml.apache.org; Sat, 10 Jun 2006 14:55:01 +0200 Received: from 58.69.6.234.pldt.net ([58.69.6.234.pldt.net]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Jun 2006 14:55:00 +0200 Received: from philliprs_yahu by 58.69.6.234.pldt.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Jun 2006 14:55:00 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: batik-users@xml.apache.org From: Phillip Ganir Subject: On Changing the Mouse Cursor Appearance Date: Sat, 10 Jun 2006 12:54:43 +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.234 (Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)) 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 hover the mouse in the middle, and w-resize and e-resize when the mouse is hovered in the edges. I already have my event listeners on the rectangle and i want it to go with the mouseover 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