I am using the about dialog box
Code:
RESOURCE DIALOG R_ABOUT_DIALOG
{
flags = EAknGeneralQueryFlags;
buttons = R_AVKON_SOFTKEYS_CLOSE;
items =
{
DLG_LINE
{
type = EAknCtPopupHeadingPane;
id = EAknMessageQueryHeaderId;
control = AVKON_HEADING
{
label = text_about_heading_txt;
};
},
DLG_LINE
{
type = EAknCtMessageQuery;
id = EAknMessageQueryContentId;
control = AVKON_MESSAGE_QUERY
{
message = text_about_body_txt;
};
}
}; //end of items
}
Code:
if (showPrivacyDialog)
{
HBufC* text = CEikonEnv::Static()->AllocReadResourceLC(R_TEXT_PRIVACY_BODY);
CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL(*text);
dlg->PrepareLC(R_ABOUT_DIALOG);
dlg->Heading()->SetTextL(GetR(R_TEXT_PRIVACY_HEADING));
TInt res = dlg->RunLD();
CleanupStack::PopAndDestroy();//-text
if (aFirstTime && EAknSoftkeyClose == res)
{//do not show again
CDictionaryStore* iniFile = CDictionaryFileStore::OpenLC(CCoeEnv::Static()->FsSession(), KSettingsFileName, TUid::Uid(0x200050BF));
//+iniFile
Utils::SaveIntL(iniFile, EShowPrivacyDialog, EFalse);
CleanupStack::PopAndDestroy();//-iniFile
}
}