What are the chances that the hand cursor on Linux uses the middle finger as the hotspot? :P
On 2010-06-04, at 16:50, [email protected] wrote: > Author: hqm > Date: 2010-06-04 13:50:29 -0700 (Fri, 04 Jun 2010) > New Revision: 16634 > > Added: > openlaszlo/branches/4.7/lps/components/lz/resources/windowshandcursor.png > Modified: > openlaszlo/branches/4.7/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as > > openlaszlo/branches/4.7/WEB-INF/lps/server/src/org/openlaszlo/compiler/SWF9Writer.java > Log: > Change 20100604-hqm-8 by [email protected] on 2010-06-04 16:47:29 EDT > in /Users/hqm/openlaszlo/4.7 > for http://svn.openlaszlo.org/openlaszlo/branches/4.7 > > Summary: add in windows cursor > > New Features: > > Bugs Fixed: LPP-8710 > > Technical Reviewer: ptw > QA Reviewer: (pending) > Doc Reviewer: (pending) > > Documentation: > > Release Notes: > > Overview: > > > Details: > > created windows (XP) specific hand cursor resource and Max OS resource, and > LFC detects OS via kernel LzBrowserKernel.getOS() call. > > > Tests: > > In Windows XP and OSX, cursor looks correct when it moves over button with > text > > > > Modified: openlaszlo/branches/4.7/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as > =================================================================== > --- openlaszlo/branches/4.7/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as > 2010-06-04 20:05:58 UTC (rev 16633) > +++ openlaszlo/branches/4.7/WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as > 2010-06-04 20:50:29 UTC (rev 16634) > @@ -155,7 +155,8 @@ > if (usehand && ! LzMouseKernel.hasGlobalCursor) { > if ($swf9) { > // This is a workaround for LPP_8710, to make a > button cursor in swf9 > - cursor = "__LFCSWF9handcursor"; > + cursor = (LzBrowserKernel.getOS().indexOf("Mac") == > 0) ? "__LFCSWF9handcursorOSX" : "__LFCSWF9handcursorWindows"; > + > } else { > cursor = MouseCursor.BUTTON; > } > > Modified: > openlaszlo/branches/4.7/WEB-INF/lps/server/src/org/openlaszlo/compiler/SWF9Writer.java > =================================================================== > --- > openlaszlo/branches/4.7/WEB-INF/lps/server/src/org/openlaszlo/compiler/SWF9Writer.java > 2010-06-04 20:05:58 UTC (rev 16633) > +++ > openlaszlo/branches/4.7/WEB-INF/lps/server/src/org/openlaszlo/compiler/SWF9Writer.java > 2010-06-04 20:50:29 UTC (rev 16634) > @@ -435,8 +435,12 @@ > // <resource name="__LFCSWF9handcursor" > src="resources/handcursor.png"/> > Offset2D offset = new Offset2D("-4", "0"); > importResource(LPS.getComponentsDirectory()+File.separator+ > - > "lz"+File.separator+"resources"+File.separator+"handcursor.png", > "__LFCSWF9handcursor", > + > "lz"+File.separator+"resources"+File.separator+"handcursor.png", > "__LFCSWF9handcursorOSX", > offset); > + > + importResource(LPS.getComponentsDirectory()+File.separator+ > + > "lz"+File.separator+"resources"+File.separator+"windowshandcursor.png", > "__LFCSWF9handcursorWindows", > + offset); > } > > // Set up the boilerplate code needed for the main swf9 application > class > > Added: > openlaszlo/branches/4.7/lps/components/lz/resources/windowshandcursor.png > > > Property changes on: > openlaszlo/branches/4.7/lps/components/lz/resources/windowshandcursor.png > ___________________________________________________________________ > Name: svn:mime-type > + application/octet-stream > > > _______________________________________________ > Laszlo-checkins mailing list > [email protected] > http://www.openlaszlo.org/mailman/listinfo/laszlo-checkins
