Categories: Symbian C++ | S60 | Code Examples | UI
This page was last modified 17:19, 1 January 2008.
Simple About dialog
From Forum Nokia Wiki
Following sample code illustrates how you could use CAknMessageQueryDialog to show your application’s about dialog. With the example the about text is defined as constant literal (you could use other ways as well) and the about dialogs title is set to show the application’s name:
Source code
_LIT(KtxAbbout, "My application and its version \n\n" \ "Copyright me 1999-2007, All right" \ "reserved.\n\nemail:\nme@mymail.com\n" \ "Homepage:\nwww.myhome.com"); _LIT(KtxApplicationName ,"My Application"); HBufC* Abbout = KtxAbbout().AllocLC(); CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL(*Abbout); dlg->PrepareLC(R_ABOUT_HEADING_PANE); dlg->SetHeaderTextL(KtxApplicationName); dlg->RunLD(); CleanupStack::PopAndDestroy(Abbout);
Resource definition
RESOURCE DIALOG r_about_heading_pane { flags=EEikDialogFlagNoDrag |EEikDialogFlagCbaButtons |EEikDialogFlagWait; buttons = R_AVKON_SOFTKEYS_BACK; items = { DLG_LINE { type = EAknCtPopupHeadingPane; id = EAknMessageQueryHeaderId; control = AVKON_HEADING { headinglayout = R_AVKON_LIST_HEADING_PANE_POPUPS; }; }, DLG_LINE { type = EAknCtMessageQuery; id = EAknMessageQueryContentId; control = AVKON_MESSAGE_QUERY { message = ""; }; } }; }
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| When is a dialog finished drawing ? (S60) | eracer | Symbian User Interface | 0 | 2003-02-14 11:56 |
| Problem with custom dialog | esorol | Symbian User Interface | 1 | 2008-04-16 09:11 |
| Dialog like as "Message Information" in SMS | yavolinsky | General Symbian C++ | 24 | 2007-01-10 14:17 |
| Standalone dialog pages | djgtram | Symbian User Interface | 0 | 2005-01-07 09:13 |
| Dialog button vs softkey button | apitoman | Symbian User Interface | 0 | 2004-02-25 08:00 |
