On 20-feb-06, at 22:30, stephane richard wrote:

Does the style text hjave the ability to lock it's update while processing its contents? if so, doing that might accelerate things greatly and update once only after the itteration is completed.

this simple code is enough to freeze the app for several minutes if you put in a text with 100 or so paragraphs:

  dim i, x as Integer
  dim st as StyledText = EditField1.styledText
  dim p as Paragraph

  x = st.ParagraphCount - 1

  for i = 0 to x

    //  Here is the offending line, iteration gets slower and slower
    //  and really unbearable for i > 50
    p = st.Paragraph(i)

  next

you see, no updating at all
just get the Paragraph object


Hello list,

I just can't use the alignment feature of the RB EditField because of
this bug:

Report ID:
bmetcrbs

Category:
REALbasic / Framework / User Interface / Controls / EditField
Severity:
Performance Issue

Description
Iteration of Paragraphs in a StyledText object gets slower and slower
when their index increases.
An unbearable crawl when index > 50.

Steps to Reproduce
Try to iterate the Paragraphs of a StyledText object that contains
more than 50 paragraphs



if anyone is concerned please add to it


Cool Runnings,
Erne.

/ |\ |\  | /
– |/ | \ | –
\ |\ |  \| \

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Cool Runnings,
Erne.

/ |\ |\  | /
– |/ | \ | –
\ |\ |  \| \

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to