[Laszlo-dev] For Review: Change 20070719-Philip-4. Summary: SWF: Text size and position available during onblur

Max Carlson max at openlaszlo.org
Thu Jul 19 13:47:50 PDT 2007


One more thought:  please update the 
http://localhost:8080/legals-test/test/lztest/lztest-textheight.lzx 
testcase.

Max Carlson wrote:
> In order to minimize public API changes to LaszloView, can we get rid of 
>  the pre/postBlur() methods and only add the 'blurring' property? 
> 'blurring' can be set directly to true/false in LzFocus.setFocus().
> 
> Also, please file a bug to add support for 'blurring' to the DHTML kernel.
> 
> Other than that, it looks good!
> 
> Philip Romanik wrote:
>> Change 20070719-Philip-4 by Philip at Philip-DC on 2007-07-19 14:05:35 EST
>>     in /cygdrive/f/laszlo/svn/src/svn/openlaszlo/branches/legals
>>     for http://svn.openlaszlo.org/openlaszlo/branches/legals
>>
>> Summary: SWF: Text size and position available during onblur
>>
>> New Features:
>>
>> Bugs Fixed: LPP-4015
>>
>> Technical Reviewer: max
>> QA Reviewer: (pending)
>> Doc Reviewer: (pending)
>>
>> Documentation:
>>
>> Release Notes:
>>
>> Details:
>>
>> LzFocus.lzx
>>   For the view losing focus, calls preBlur() before the focus change 
>> begins,
>>   and calls postBlur() after the focus has changed.
>>
>> LaszloView.lzx
>>   Defined preBlur() and postBlur() methods which are called from 
>> LzFocus() at
>>   the start and end of changing focus from one view to another. The 
>> default
>>   behavior is to set a variable, blurring to true when a view is 
>> losing focus.
>>
>> LzModeManager.as
>>   rawMouseEvent() caches the current selection (for all text views).
>>
>> LzTextSprite.as
>>   Defines _cacheSelection() method for the TextField object to capture 
>> the
>>   position and size of the selection. Modified getSelectionPosition() and
>>   getSelectionSize() to return the cached values if the view is losing 
>> focus.
>>
>> LzInputTextSprite.as
>>   Setup cacheSelection method to capture the position and size of 
>> selection.
>>
>>
>> Tests:
>> See the test case I posted in LPP-4015. When you click the button, the 
>> selection  information from the input box (assuming it had focus) is 
>> displayed in the debugger.
>>
>> Files:
>> M      WEB-INF/lps/lfc/kernel/swf/LzTextSprite.as
>> M      WEB-INF/lps/lfc/kernel/swf/LzInputTextSprite.as
>> M      WEB-INF/lps/lfc/services/platform/swf/LzModeManager.as
>> M      WEB-INF/lps/lfc/services/LzFocus.lzs
>> M      WEB-INF/lps/lfc/views/LaszloView.lzs
>>
>> Changeset: 
>> http://svn.openlaszlo.org/openlaszlo/patches/20070719-Philip-4.tar
>>
>>
>>
> 

-- 
Regards,
Max Carlson
OpenLaszlo.org


More information about the Laszlo-dev mailing list