[WIN] RE: Win32lib: setting cursor in RichEdit
Hi Ad,
What I've discovered I need to do is setFocus(RE) and then setIndex(RE,
pos). But I still don't know how to put the cursor on the second line if you
are using RTF text. (I can if I don't streamRTF in, however.)
I've played a lot with the RTF codes you have to place in front of your data
and in front of each group of words that need a different font or color. I
got that nicely going, only to discover that getIndex( RE) is not helping me
know where in the stream the user is - just where he in on control. In other
words he might be in position 10 screenwise but positiong 528 streamwise. So
I haven't found a good method to colorize the data while the user works on
it. URGH! Have you had any luck with this? I sure hope I'm doing something
incorrectly and there is a solution. The first method I used was to color
with setIndex/setFont but I didn't like that at all.
Judith
On Fri, 13 Oct 2000 14:13:09 +0200, Ad Rienks <kwibus at ZONNET.NL> wrote:
>Hi Judith,
>
>Well, for me setFocus(RE) does *not* work. I'm very surprised.
>What *does* work is setText(RE, 13 & 10) to fill the first line of the
>RichEdit. But wtf is wrong with setFocus?
>
>Ad
>
>----- Oorspronkelijk bericht -----
>Van: Judith Evans <camping at FLASH.NET>
>Aan: <EUPHORIA at LISTSERV.MUOHIO.EDU>
>Verzonden: vrijdag 13 oktober 2000 12:57
>Onderwerp: [WIN] RE: Win32lib: setting cursor in RichEdit
>
>
>> Well, duh?, I must be brain dead. I setFocus(RE) and that works. But what
>if
>> I want the cursor on the second line?
>>
>> Judith
>>
>>
>> On Fri, 13 Oct 2000 06:01:49 -0400, Judith Evans <camping at FLASH.NET>
>wrote:
>>
>> >Matt, Derek,
>> >
>> >Is there a way to initially set the cursor in the RichEdit control? I
>have
>> a
>> >window with 2 Combo boxes and the RichEdit under them. The window comes
>up
>> >with the cursor in the first Combo box.
>> >
>> >Thanks,
>> >
>> >Judith
|
Not Categorized, Please Help
|
|