Re: setting text color in Rich Edit
Hi Dan/Judith
you can use getIndex(RE) which returns an atom that tells you where the
insertion cursor is.
The next win32lib also has getSelection(RE) which retruns a two-element
sequence containing the character positions of the start and end of any
selected text.
These functions also work with MleText and EditText controls.
----
cheers
Derek.
----- Original Message -----
From: "Dan B Moyer" <DANMOYER at PRODIGY.NET>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Tuesday, October 10, 2000 2:27 AM
Subject: Re: setting text color in Rich Edit
> Judith,
>
> Well, that's wonderful! But I'm curious as to what you did; I wasn't able
> to find any way to know where the cursor *is* in the Rich Edit (to know
what
> position values to use to select text to color the keywords as they're
> entered), nor could I think of anything to colorize while Streaming. I
> couldn't ever figure out how David got the cursor to be initially present
in
> his "generic" example (ie, without first mouse clicking).
>
> Anyway, good work, glad I said something that helped, gotta catch some
zzz's
> now.
>
> Dan
>
> ----- Original Message -----
> From: "Judith Evans" <camping at FLASH.NET>
> To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
> Sent: Monday, October 09, 2000 7:28 AM
> Subject: Re: setting text color in Rich Edit
>
>
> > Dan and David,
> >
> > Good news! The method works! We can now use RichEdit if we want to in
the
> > IDE editor. That would sure simplify things.
> >
> > Thanks Dan for getting us started on this today.
> >
> > Judith
|
Not Categorized, Please Help
|
|