Re: setting text color in Rich Edit

new topic     » goto parent     » topic index » view thread      » older message » newer message

Yeah, but the exe exw might not like Richtext format and I don't want to
write out two files, one to reload with and one for Euphoria.

Judith


On Mon, 9 Oct 2000 07:06:48 -0700, Dan B Moyer <DANMOYER at PRODIGY.NET> wrote:

>Judith,
>
>I *think* in order for a file to get "naturally" colorized as it Streams
in,
>it has to have been *saved* in some ".rtf" format; but since what's *in*
the
>Rich Edit control is what would be saved, if it were colorized by Derek's
>trick *as it were typed* (similar to what David has happening), then it
>would (nearly automatically?) be saved in that format??  Then when it
>Streams in, presto, auto color.
>
>Dan
>
>----- Original Message -----
>From: "Judith Evans" <camping at FLASH.NET>
>To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
>Sent: Monday, October 09, 2000 6:53 AM
>Subject: Re: setting text color in Rich Edit
>
>
>> Derek,
>>
>> That helps a lot for text already in the RichEdit. But lets pretend we
>have
>> a text file - or whatever not already richEdit - and want to colorize it
>as
>> we putStream or before we putStream?
>>
>> Do you know a solution to that?
>>
>> I suppose we could kludge it and inspect the data after streaming into
the
>> RichEdit and colorize it then but it seems it would be faster to colorize
>as
>> we putStream.
>>
>> Judith
>>
>>
>> On Tue, 10 Oct 2000 00:36:06 +1100, Derek Parnell
><dparnell at BIGPOND.NET.AU>
>> wrote:
>>
>>
>> >Its undocumented but the setIndex() routine can be used to select text
on
>> >RichEdit controls.
>> >
>> >eg..
>> >    -- Select characters 30 - 43 inclusive...
>> >    setIndex(RE, {30, 43})
>> >
>> >I should really update the docs on this one. blink
>> >
>> >----
>> >cheers,
>> >Derek

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu