×

Discussion Board

Results 1 to 3 of 3

Thread: About Dialog

  1. #1
    Regular Contributor
    Join Date
    Nov 2004
    Posts
    72

    About Dialog

    My Application is ready , But i have one small problem .
    Kindly Help.

    I want to put an About Dialog .
    But i want to display atleast 6 to 7 lines of text.
    How do i achieve this .
    Can i manage it using CEikDialog .

    Regards ,
    Lilesh.

  2. #2
    Nokia Developer Expert
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,142
    you could try it with dialog, and just putting editor (CeikEdwin or any other) there, and setting it read-only.

    yucca

  3. #3
    Regular Contributor
    Join Date
    Apr 2005
    Location
    Indonesia
    Posts
    73
    U can use this :
    TBuf<300> pMsg;
    pMsg.Append(_L("test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test "));
    TBuf<30> pTitle = _L("INFO");
    CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL(pMsg);
    dlg->PrepareLC(R_MESSAGE_QUERY);
    dlg->QueryHeading()->SetTextL(pTitle);
    dlg->RunLD();

    and in the resource U must add:

    RESOURCE DIALOG r_message_query
    {
    flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
    buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
    items=
    {
    DLG_LINE
    {
    type = EAknCtPopupHeadingPane;
    id = EAknMessageQueryHeaderId;
    control = AVKON_HEADING
    {
    };
    },
    DLG_LINE
    {
    type = EAknCtMessageQuery;
    id = EAknMessageQueryContentId;
    control = AVKON_MESSAGE_QUERY
    {
    //layout = EConfirmationQueryLayout;
    };
    }
    };
    }

    I hope this will help U.

Posting Permissions

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