×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Mar 2006
    Posts
    44

    how get the text from rich text editor in the dialog

    hi,
    i am developing one application. In this app, i have created dialog which contains the rich text editor. All are created in the below resource file.

    RESOURCE DIALOG r_testapp_dialog
    {
    title = qtn_appl_dialog_scannersdk;
    flags = EAknDialogGenericFullScreen;
    buttons = R_AVKON_SOFTKEYS_OPTIONS_BACK;
    items =
    {
    DLG_LINE
    {
    type = EEikCtRichTextEditor;
    id = ETestAppResultText;
    control = RTXTED
    {
    width = 160;
    height = 100;
    numlines = 20;
    textlimit = 50;
    flags = EEikEdwinResizable;
    };
    }
    };
    }

    In the source file, created the CAknDialog object and constructed using that dialog resource.

    CAknDialog= new(ELeave) CAknDialog();
    dialog->ConstructL(R_TESTAPP_DLG_MENUBAR);
    dialog->ExecuteLD(R_TESTAPP_DIALOG);

    Now i want set some text to that rich text before dialog execute.
    how can get that rich text object?
    is there any other dialog to use this rich text editor?
    how can i set the text length to unlimited?

    please anybody give me the solution.

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,689

    Re: how get the text from rich text editor in the dialog

    You have to inherit a class from CAknDialog, and implement your own OkToExitL method. That is the place where you can extract data using - for example - GetEdwinText or GetTextEditorText (these methods are inherited from CEikDialog).

  3. #3
    Regular Contributor
    Join Date
    Sep 2008
    Posts
    168

    Re: how get the text from rich text editor in the dialog

    Why m I getting a kern-exec 3 error while implementing getEdwinText method?

  4. #4
    Registered User
    Join Date
    Oct 2008
    Posts
    112

    Re: how get the text from rich text editor in the dialog

    Quote Originally Posted by wizard_hu_ View Post
    You have to inherit a class from CAknDialog, and implement your own OkToExitL method. That is the place where you can extract data using - for example - GetEdwinText or GetTextEditorText (these methods are inherited from CEikDialog).
    Please tell me hoe to use GetedwinText . function , I apply followin code but i can't resolve my problem.

    /* CEikEdwin* idlg;
    // Instantiate the control
    idlg = new (ELeave)CEikEdwin;
    idlg->SetContainerWindowL(*this);

    // Create a resource reader that we'll use to get the settings
    TResourceReader reader;
    iEikonEnv->CreateResourceReaderLC(reader, R_MR_BULKSMS_NEW_DIALOG);
    idlg->ConstructFromResourceL(reader);
    idlg->ru

    CleanupStack::PopAndDestroy();

    TBuf<150> Text ;
    idlg->GetText(Text);
    */

  5. #5
    Registered User
    Join Date
    Feb 2010
    Location
    India
    Posts
    281

    Re: how get the text from rich text editor in the dialog

    HBufC *htxt;
    htxt = iRichText1->GetTextInHBufL();

    you can get richtexteditor text

Similar Threads

  1. how to move from list box to text editor on dialog box
    By manjunaths in forum Symbian User Interface
    Replies: 0
    Last Post: 2006-12-07, 10:13
  2. Rich Text Editor and Dialog
    By sakhya in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-04-28, 17:08
  3. Replies: 0
    Last Post: 2004-11-24, 18:49
  4. Text view in dialog (CEikLabel/CEikEdwin?)
    By lepo in forum Symbian User Interface
    Replies: 2
    Last Post: 2002-10-30, 01:52

Posting Permissions

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