×
Namespaces

Variants
Actions

Showing Notes

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Article
Created: symbianyucca (30 Mar 2007)
Last edited: hamishwillee (26 Jul 2012)

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

This page was last modified on 26 July 2012, at 09:37.
56 page views in the last 30 days.
×