Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User manjunaths's Avatar
    Join Date
    Mar 2006
    Posts
    44
    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 wizard_hu_'s Avatar
    Join Date
    Feb 2006
    Location
    Mallorca, Holiday
    Posts
    27,683
    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 ssabestian's Avatar
    Join Date
    Sep 2008
    Posts
    168
    Why m I getting a kern-exec 3 error while implementing getEdwinText method?

  4. #4
    Registered User kush_192's Avatar
    Join Date
    Oct 2008
    Posts
    112
    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 mail2karthi07's Avatar
    Join Date
    Feb 2010
    Location
    India
    Posts
    281
    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
    Replies: 0
    Last Post: 2005-04-28, 17:09
  3. Rich Text Editor and Dialog
    By sakhya in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-04-28, 17:08
  4. Replies: 0
    Last Post: 2004-11-24, 18:49
  5. 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
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved