×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2003
    Posts
    86

    About Dialog wouldn't appear

    I would like to make an about dialog to my application and it seems that i am doing something wrong. Here is the rss data

    RESOURCE DIALOG About
    {
    flags = EEikDialogFlagWait;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
    {
    DLG_LINE
    {
    type = EAknCtListQueryControl;
    id = EListQueryControl;
    control = AVKON_LIST_QUERY_CONTROL
    {
    listtype = EAknCtSingleHeadingListBox;
    listbox = LISTBOX
    {
    flags = EAknListBoxMenuList;
    array_id = r_aknexquery_list_single_graphic_heading_pane_item;
    };
    heading = "About";
    };
    }
    };
    }

    RESOURCE ARRAY r_aknexquery_list_single_graphic_heading_pane_item
    {
    items =
    {
    LBUF
    {
    txt = "Program Ver. 1.0";
    },
    LBUF
    {
    txt = "Company";
    },
    LBUF
    {
    txt = "Site";
    }

    and here is the code to display it


    CAknDialog* dlg = new (ELeave) CAknDialog();
    dlg->ExecuteLD(ABOUT);
    break;

    Please any help would be ok

  2. #2
    Nokia Developer Expert
    Join Date
    Apr 2003
    Location
    Finland
    Posts
    425
    Hello,

    I'm not familiar within s60 but I think there is need to write a bit of code for your about dialog.

    Like here (this is from s80 but get the idea and convert it to s60):

    [.rss]
    RESOURCE DIALOG r_smpl_document_list_dialog
    <...> // just like in your about resouce

    [.h]
    class CSampleDocumentListDialog : public CEikDialog
    {
    public:
    static void RunDialogLD ();
    private:
    private:
    CSampleDocumentListDialog ();
    // void PreLayoutDynInitL ();

    };

    [.cpp]
    void CSampleDocumentListDialog::RunDialogLD ()
    {
    CSampleDocumentListDialog *dialog = new (ELeave) CSampleDocumentListDialog();
    dialog->ExecuteLD(R_SMPL_DOCUMENT_LIST_DIALOG);
    }

    // Open dialog
    CSampleDocumentListDialog::RunDialogLD );
    Last edited by veskola; 2004-01-18 at 16:43.

Posting Permissions

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