Showing Notes
Article Metadata
There are several different notes defined for Symbian, global notes can be used to show notes in tight loops and other places where normal CAknNotes will fail to show (because they require draw events to be shown correctly, and tight loops will not allow events to get through). Also if you want to show wait or progress notes.
For other than previously mentioned scenarios you should use normal CAknNotes as shown in following samples:
void ShowConfirmationNote(const TDesC& aMessage)
{
CAknConfirmationNote* dialog = new(ELeave)CAknConfirmationNote();
dialog->ExecuteLD(aMessage);
}
void ShowInformationNote(const TDesC& aMessage)
{
CAknInformationNote* dialog = new(ELeave)CAknInformationNote();
dialog->ExecuteLD(aMessage);
}
void ShowWarningNote(const TDesC& aMessage)
{
CAknWarningNote* dialog = new(ELeave)CAknWarningNote();
dialog->ExecuteLD(aMessage);
}
void ShowErrorNote(const TDesC& aMessage)
{
CAknErrorNote* dialog = new(ELeave)CAknErrorNote();
dialog->ExecuteLD(aMessage);
}
The name of the note identifies the usage scenario where the note is intended to be used in and the main differences between them are that each note type has different tone and icon.
Required header: aknnotewrappers.h Required libraries: avkon.lib eikcdlg.lib eikctl.lib


(no comments yet)