iTextBox = new (ELeave) CEikRichTextEditor(TGulBorder::ENone); Then it is constructed and its flags are set using the command below – in this case they are defined in a way to make the box read only and to hide the cursor. const TInt edwinFlags = EEikEdwinInclusiveSizeFixed| EEikEdwinNoAutoSelection