on 23-02-2006 15:41, Ian R at [EMAIL PROTECTED] wrote:
>
> On Feb 20, 2006, at 5:30 PM, Erne wrote:
>
>>
>> On 20-feb-06, at 22:45, Joseph J. Strout wrote:
>>
>>> At 10:42 PM +0100 2/20/06, Erne wrote:
>>>
>>>> this simple code is enough to freeze the app for several minutes
>>>> if you put in a text with 100 or so paragraphs:
>>>
>>> I imagine that st.Paragraph(i) is currently starting its search
>>> from the beginning each time -- solving that could be tricky, as
>>> caches can easily get outdated when you have mutable objects like
>>> these. But, maybe a simple solution would be to add a new method,
>>> st.Paragraphs, that returns all the paragraphs at once in an array.
>>
>> Well, I have a similar code snippet retrieving StyleRuns instead of
>> Paragraphs
>> and it didn't show the same problems
>
>
> I had this same trouble a couple of months ago ( http://
> support.realsoftware.com/listarchives/realbasic-nug/2005-11/
> msg00206.html ) and temporarily gave up on messing with it.
>
> But this thread made me go back, with my extra couple of months RB
> experience, and rewrite my methods -- skipping the Paragraph class
> and instead using InStr to find line endings. My benchmarking
> software reports that it is a gazillion times faster, and it only
> took me about 1/2 hour -- and I take the "rapid" out of "rapid
> application development".
>
> So I think you should try that.
>
Thanks Ian,
I've rolled an XML Style data class to store style and alignment data from
an editfield, but I've had to jump all sort of hoops:
Report ID: wljezwbk
Summary: StyleRun.Color object returns incorrect results
Description
When you drop or copy some coloured text onto a styled EditField the color
returned by the StyleRun.Color object is incorrect (always some shade of
green)
Report ID: vhvhmvfg
Summary: ParagraphAlignment doesn't work correctly on newly created
Description
If you create a new StyledText object and try to set alignment on it's
paragraphs chances are you wont 'get what you want after assigning that
StyledText to an EdtiField.
Report ID: xdaftznx
Summary: I want to get the full font name by SelTextFont property.
Description
There are some fonts whose name has "W3","w4","w8","W6","Bold" ,"Light" and
etc at the end of their name.
When selecting the name of these type of fonts using SelTextFont,these full
name of letters("W3","w4","w8","W6","Bold" ,"Light" and etc ) are missing.
I want to get the full font name by SelTextFont property
and now this Paragraph thing
deal is I need to cast a Paragraph object to know what Alignment it has
...well maybe I can find some workaround also for this (there's a
SelAlignment prop IIRC)
what an irony if one thinks this whole StyledText thing was supposed to
speed up things allowing access to style data without fiddling with the
EditField selections
Cool Runnings,
Erne.
--
/ |\ |\ | /
|/ | \ |
\ |\ | \| \
--
| e r | Ernesto Giannotta
| n e | Musical Box - a media store
_______________________________________________
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>