×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2003
    Posts
    25

    RichText Editor eats 'newline' in dialogs

    Hello all,

    There is a problem with rich text editors located within dialogs that I noticed 3 years ago but forgot the solution (if there was any).

    When a rich text control (CEikRichTextEditor) is located withing dialogs using resource files (resource RTXTED), it will 'eat' the newline input by pressing the '0' key three times. The editor works correctly if it is within a normal view and created manually in C++ code, so the problem is only limited to dialogs.

    The problem is visible directly in Nokia examples such as the Type example code (see link below) and the SmsSend example in the S60v2 FP2 SDK. Both of these examples have a dialog which contains a RTXTED and pressing '0' does not have the expected effect of creating a line break.

    http://www.forum.nokia.com/info/sw.n..._v1_0.zip.html

    I am looking for a direct and simple solution to the problem, rather than a redesign of the UI. Plase post here if you have run into this yourself..


    Thanks in advance,
    Pawel

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    25

    Re: RichText Editor eats 'newline' in dialogs

    To answer my own question, the examples quoted are indeed missing something. To prevent dialogs from "eating" newline from the embedded text editors, one needs to have:

    itemflags = EEikDlgItemTakesEnterKey;

    in the dialog line resource definition.

Similar Threads

  1. Multiple views with dialogs
    By djgtram in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-01-01, 20:33
  2. matching a contents of a richtext object
    By sajindra in forum Symbian
    Replies: 0
    Last Post: 2004-05-11, 12:31
  3. Close dialogs
    By spanish_sweetie in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-02-16, 20:45
  4. Getting Sheet object embedded in a Richtext
    By rajesh_ksp in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2002-05-15, 19:57

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×