Custom dialog- a dialog similar to a popup dialog
Hi,
I want to implement a popup dialog which has a title, and its content text can have different color, size and maybe link or the phone number which can be directly dialed, just like the phone number in sms content.
So I decided to follow the example:
[url]http://wiki.forum.nokia.com/index.php/CS001165_-_Implementing_a_custom_CAknQueryDialog_dialog[/url]
and chagend the .rss file to this:
---------------------------------------------------
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
{
};
}
----------------------------------------------------------------------------
Then:
---------------------------------------------------------------------------
iDialog->PrepareLC(R_MODAL_DIALOG);
iDialog->QueryHeading()->SetTextL(_L("test"));
iDialog->RunLD();
---------------------------------------------------------------------------
And change the CSplashScreenDialog::SetSizeAndPosition, so it covers the half of screen
But after I run it, there are two problems:
1. I didn't see the title
2. A simple rectangle covers the half of the screen and that is very ugly
Sorry for not being so familiar with the UI programming, can someone help me? Thanks in advance!
PS, it doesn't need to be a dialog, but the appearance matters
Re: Custom dialog- a dialog similar to a popup dialog
I have tried the CAknMessageQueryDialog and its appearence suits my need, but somehow I am not able to change the message text color and size. Any idea?