×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    87

    how to create the next dialog type...

    Hi,

    I saw the next dialog type & got a question how to create it:

    the dialog has a header, a separator line & some text under the line we can scrool - so I wounder how to create this dialog? In example(Query) there is
    a dilalog witch looks like this (CAknListQueryDialog), but this is a list;

    I tried CAknMessageQueryDialog - it looks like I described above, exept text background is white.

    ps:
    by tha way: is it possible to set font for CAknListQueryDialog?

  2. #2
    Regular Contributor
    Join Date
    Oct 2004
    Location
    india
    Posts
    306

    Re: how to create the next dialog type...

    yeah, i did it a simpler manner chk it out
    it may help u out

    in .rss file
    RESOURCE DIALOG r_message
    {
    flags = EGeneralQueryFlags | EEikDialogFlagNoBorder | EEikDialogFlagNoShadow;
    buttons = R_AVKON_SOFTKEYS_OK_EMPTY;
    items =
    {
    DLG_LINE
    {
    type = EAknCtPopupHeadingPane;
    itemflags = EEikDlgItemNonFocusing;
    id = EAknMessageQueryHeaderId;
    control = AVKON_HEADING
    {
    };
    },
    DLG_LINE
    {
    type = EAknCtMessageQuery;
    id = EAknMessageQueryContentId;
    control = AVKON_MESSAGE_QUERY
    {
    };
    }
    };
    }

    in .cpp file

    RFs fs;
    CleanupClosePushL(fs);
    User::LeaveIfError(fs.Connect());

    RFile ifile;
    CleanupClosePushL(fs);
    ifile.Open(fs,_L("c:\\data.txt"),EFileRead);


    TInt sz;
    ifile.Size(sz);
    HBufC8* idata = HBufC8::NewLC(sz);
    ifile.Read(0,idata->Des());

    ifile.Close();
    fs.Close();

    HBufC* data = HBufC::NewLC(idata->Des().Length());
    data->Des().Copy(idata->Des());


    CAknMessageQueryDialog* idlg = CAknMessageQueryDialog::NewL(data->Des());
    idlg->SetHeaderText(_L("MY DATA"));
    idlg->ExecuteLD(R_MESSAGE);


    CleanupStack::PopAndDestroy(4);

Similar Threads

  1. Series80 - How to create dynamically a multipage dialog?
    By GeKI in forum Symbian User Interface
    Replies: 0
    Last Post: 2005-10-18, 14:41
  2. D211 with RH7.3
    By fiveam in forum Multimodecards
    Replies: 3
    Last Post: 2003-02-24, 09:06
  3. D211 : Compiling the user interface for Linux...?
    By franz_meyer in forum Multimodecards
    Replies: 1
    Last Post: 2002-12-09, 11:48
  4. How to create a high priority dialog?
    By ivuorio in forum Symbian
    Replies: 1
    Last Post: 2002-10-09, 10:07
  5. Problem with Nokia D211 Linux Drivers
    By fiveam in forum Multimodecards
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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