Approved.

On 5/25/2010 7:05 PM, Henry Minsky wrote:
updated with Andre's refactoring suggestion

Change 20100525-hqm-t by [email protected] on 2010-05-25 12:17:38 EDT
     in /Users/hqm/openlaszlo/trunk1
     for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: set cursor to hand-select resource when mouse over clickable text view

New Features:

Bugs Fixed: LPP-8710

Technical Reviewer: andre
QA Reviewer: max
Doc Reviewer: (pending)

Documentation:

Release Notes:

Overview:


Details:

In handleTextfieldMouse() method, if the text sprite is set as clickable, force
the cursor to the system BUTTON cursor.

This code is a copy of the code from __forwardMouseEventToSprite which
operates on subclasses of Sprite rather than TextField, I wasn't sure
how to factor it out nicely.

Tests:

In swf10, when mouse is moved over this text field, it should change the cursor 
to the button select
resource (hand with pointing finger)

<canvas layout="axis:y">
   <text onclick="Debug.info('click')">Clickable text should show a hand 
cursor</text>
</canvas>


Files:
M       WEB-INF/lps/lfc/kernel/swf9/LzTextSprite.as


Changeset: http://svn.openlaszlo.org/openlaszlo/patches/20100525-hqm-t.tar

Reply via email to