×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    3

    EEikEdwinUserSuppliedText and SetTextL

    Hi,

    I have a dialog with a CEikGlobalTextEditor. When calling SetTextL, i get the panic EIKON-EDWIN 8. Anyone knows why, or where I cand find any documentation about EIKON-EDWIN panics?

    The resource that looks like this:
    RESOURCE DIALOG r_dialog_ok
    {
    title = "";
    buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
    flags = EEikDialogFlagWait | EEikDialogFlagCbaButtons;
    items = {
    DLG_LINE
    {
    type = EEikCtGlobalTextEditor;
    id = EDialogLabel;
    itemflags = EEikDlgItemAsLabel;
    control = GTXTED
    {
    flags = EEikEdwinUserSuppliedText | EEikEdwinNoHorizScrolling | EEikEdwinResizable;
    numlines = 0;
    };
    }
    };
    }

  2. #2
    Regular Contributor
    Join Date
    Apr 2005
    Posts
    89

    Re: EEikEdwinUserSuppliedText and SetTextL

    I don't know the answer, but I remember having problems with EEikEdwinUserSuppliedText too. Instead I determined the editor content's height in dialog's PostLayoutDynInitL using the following
    Code:
        CTextLayout *pTextLayout = pEikRichTextEditor->iLayout
            /* iLayout is protected, fix is omitted here for simplicity */;
        const TRect firstParagraphRect(pTextLayout->ParagraphRectL(0));
        const TInt formattedHeightInPixels = pTextLayout->FormattedHeightInPixels();
        const int niceHeight = formattedHeightInPixels - firstParagraphRect.iTl.iY;
    then adjusted heights of dialog, line and control accordingly (also called ResetLineMinimumSizes()).

Posting Permissions

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