i have a big, multipleline Editfield, with it's controll-membervariable m_EditView, and a value-member-variable m_sView. I wanna search for the sting m_sSearch in the editfield and select it. This works fine if i use some actions like copy, paste, delete, but it isn't visible, not white letters on blue background or something else. If the "selected" text is not in a visible range, the edit-field scrolls by itself to the "selected" text.
Here's the "code" :
int Pos = m_sView.Find( m_sSearch );
if( Pos >= 0 )
m_EditView.SetSel( Pos, Pos + m_sSearch.GetLength() );