[Laszlo-dev] how to specify cursor offset (hotspot) for bitmap cursor assets?
Max Carlson
max at laszlosystems.com
Thu Oct 22 18:36:05 PDT 2009
I think adding some attributes to the resource tag is the way to go.
Ideally, the hot spot could be any shape, but a rectangle may be enough
for now. You may want to add height and width attributes also...
Henry Minsky wrote:
> I'm working on http://openlaszlo.org/jira/browse/LPP-8372. One of the
> issues we have is that there's no way to specify the offset ( 'hotspot'
> ) of a cursor asset
> which is not a .swf file.
>
> What would be the best way to do this?
>
> I was thinking maybe we should add a new optional attribute for
> <resource> which is "offsetx" and "offsety", and
> then the cursor resources could be declared that way
>
> <resource name="crosshair" src="cursor_crosshair.png" offsetx="8"
> offsety="8"/>
>
> or else maybe we make a special <cursor> tag which the LPS compiler
> converts into a resource
> table entry?
>
> Any thoughts on this?
>
>
> --
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com <mailto:hminsky at laszlosystems.com>
>
>
--
Regards,
Max Carlson
OpenLaszlo.org
More information about the Laszlo-dev
mailing list