you were almost right:
CreateCaret Text1.hwnd, Picture1.Picture, 8, 13
ShowCaret Text1.hwnd
do the trick
Soeren
"mayayana" <mayaXXyaYYna1a@mindZZspring.com> wrote in message
news:TSVKb.31165$IM3.23113@newsread3.news.atl.eart hlink.net...[color=blue]
> I did it once because I wanted to be able to switch to
> a red caret, but I don't remember how I did it. (Not much help,
> I know!) I think it might have been with CreateCursor.
> As I recall, the process wasn't difficult but after replacing
> an RTB cursor with a 1-pixel-wide red line bitmap I found that
> 1 pixel was just too big and clunky-looking for my purposes -
> and didn't pursue it any further.
>
> --
> --
> S.W. Rasmussen <swr@seqtools.dk> wrote in message
> news:btgpfb$v8u$1@news.cybercity.dk...[color=green]
> > Well, I suspected that changing the shape of the Caret - as I understand[/color]
> is[color=green]
> > the correct term - is not easy (having looked quite a number of places).[/color][/color]
I[color=blue][color=green]
> > will have a look at the "underscore" idea - although this may slow down
> > navigation and of course require special handling of the selstart = 0
> > situation.
> >
> > Thanks anyway for the replies...
> >
> > Cheers
> >
> > Soeren
> >
> > --
> > D.Sci. Soeren W. Rasmussen
> > Valby DataCenter
> > Valbygaardsvej 18
> > DK-2500 Valby
> > Denmark
> >
swr@seqtools.dk
> >
www.seqtools.dk
> >
> >
> > "Rick Rothstein" <rickNOSPAMnews@NOSPAMcomcast.net> wrote in message
> > news:meedndK_pJF1S2aiRVn-jw@comcast.com...[color=darkred]
> > > > A trivial (?) question: does anyone know how to change the shape of[/color][/color]
> the[color=green][color=darkred]
> > > > cursor in a RichTextBox control from the normal vertical line to an
> > > > underscore?
> > >
> > > I'm kind of thinking you can't do that, but I don't know for sure.[/color]
> > However,[color=darkred]
> > > if you could do it, where would
> > >
> > > RichTextBox1.SelStart = 0
> > >
> > > send the text cursor to? Before you answer that, think about where the[/color]
> > text[color=darkred]
> > > cursor would go with this
> > >
> > > RichTextBox1.SelStart = 1
> > >
> > > Rick - MVP
> > >
> > >[/color]
> >
> >[/color]
>
>[/color]