NlMakesis Y-Browser Y-Tasks
Eric Bustarret NewLC Founder & CEO / Professional Symbian OS Consultant
Dushyant GaurSoftware Specialist,Kodiak Networks,No 401 Prestige Sigma, 4th Floor3 Vittal Mallya RoadBangalore - 560 001India
Forum posts: 2009
This will open a dialog with a title and a scrollable read-only text:
dlg->PrepareLC(R_MESSAGE_NOTE);
dlg->QueryHeading()->SetTextL(*title);
dlg->RunLD();
The R_MESSAGE_NOTE is defined as:
{
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
{
};
}
};
}
Cheers,
Eric
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
I tried your suggestion, how do I get text to go onto seperate lines to see the scrolling work. Here is the code:
CAknMessageQueryDialog* dlg = CAknMessageQueryDialog::NewL(_L("Log"));
dlg->PrepareLC(R_PAGER_LOG_DIALOG);
dlg->QueryHeading()->SetTextL(_L("Hello\r\nWorld\r\nFoo\r\nBar\r\n"));
dlg->RunLD();
Should I use something else in plcae of \r\n ?
Forum posts: 48
Can anyone show me the way where I can know when my CAknMessageQueryDialog is dismissed.
It doesnt have OkTOExit() method. Then whats the alternative for that.
Any code fragments will be a great help.
Thanx in advance...
Dushyant Gaur
Software Specialist,
Kodiak Networks,
No 401 Prestige Sigma, 4th Floor
3 Vittal Mallya Road
Bangalore - 560 001
India