Click to See Complete Forum and Search --> : How can I show some text selected in a multiline edit control ?


Braulio
April 19th, 1999, 02:02 AM
Hi,

I would like to show some text selected in a Edit control ( For searching options), how can I do that ?

Thanks, Bye !
Braulio

Dave Lorde
April 19th, 1999, 04:35 AM
Use CEdit::SetSel(int nStartChar, int nEndChar, BOOL bNoScroll = FALSE );

Dave

Braulio
April 19th, 1999, 06:46 AM
Thanks, but it don't show the selected text ( blue mark), How can I do that ?

Thanks, Bye !
Braulio

Dave Lorde
April 19th, 1999, 06:54 AM
> Thanks, but it don't show the selected text ( blue mark), How can I do that ?

I don't know, it works fine here... do you mean it doesn't highlight the text, or that it doesn't scroll the highlighted text into view? Or what?

Blue mark?

Dave

Braulio
April 19th, 1999, 07:07 AM
Sorry, I froget to put to false the Hide Selection property...

Thanks, Bye !
Braulio