I'll try to generalize the data structure so the user can manually specify width/height at some later date if we want to. <br><br><br><br><div class="gmail_quote">On Fri, Oct 23, 2009 at 10:49 AM, Max Carlson <span dir="ltr"><<a href="mailto:max@openlaszlo.org">max@openlaszlo.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On second thought, maybe being able to specify an offset for the resource itself is all we really need for now...<div>
<div></div><div class="h5"><br>
<br>
Max Carlson wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
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...<br>
<br>
Henry Minsky wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I'm working on <a href="http://openlaszlo.org/jira/browse/LPP-8372" target="_blank">http://openlaszlo.org/jira/browse/LPP-8372</a>. One of the issues we have is that there's no way to specify the offset ( 'hotspot' ) of a cursor asset<br>
which is not a .swf file.<br>
<br>
What would be the best way to do this?<br>
<br>
I was thinking maybe we should add a new optional attribute for <resource> which is "offsetx" and "offsety", and<br>
then the cursor resources could be declared that way<br>
<br>
<resource name="crosshair" src="cursor_crosshair.png" offsetx="8" offsety="8"/><br>
<br>
or else maybe we make a special <cursor> tag which the LPS compiler converts into a resource<br>
table entry?<br>
<br>
Any thoughts on this?<br>
<br>
<br>
-- <br>
Henry Minsky<br>
Software Architect<br>
<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a> <mailto:<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a>><br>
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
-- <br>
Regards,<br>
Max Carlson<br>
OpenLaszlo.org<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br>