Re: FTC 1.2 beta 10
- From: Seth Verrinder <sethv@xxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Mon, 24 Nov 2008 09:04:13 -0600
On Nov 21, 2008, at 4:32 PM, Brendan Murphy wrote:
- Optimized the FTStyleRun.setText method for an overall speed
improvement in the FTC of about 5-7%. If you call the setText
method in your code, it now takes an optional parameter for the
length of the string you are passing in. So if you know the
length, passing it in saves the time of calculating the string's
length. If you pass in an incorrect length, you will cause
problems, so it is up to you to make sure this value is accurate.
If the caret is positioned after a manual line break, pressing delete
causes FTStyleRun.deleteLeft to pass an invalid length to
FTStyleRun.setText. The simplest way to reproduce this is to press
enter and then press delete.
Thanks,
Seth Verrinder
FTC Website:
http://www.truenorthsoftware.com/FormattedTextControl/FormattedTextControl.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in
the subject field.
Other related posts: