×
Namespaces

Variants
Actions

Archived:Info Popup Note API in Symbian C++

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Remove from Archive?: This article has been marked for removal from archive, for the following reasons:
As far as I can tell this class, and hence this tip is still relevant in Nokia Belle, for those people using Symbian C++ rather than Qt.

CAknInfoPopupNoteController is a popup message. It is an active object, and uses a timer to show a popup after a specified time interval (the default is 1 second). The popup disappears automatically after a certain time (the default is 10 seconds).

Article Metadata
Tested with
Devices(s): Nokia N95
Compatibility
Platform(s): S60 3rd Edition, MR
S60 3rd Edition (initial release)
Article
Keywords: CAknInfoPopupNoteController
Created: tepaa (28 Apr 2008)
Last edited: hamishwillee (28 Sep 2012)

Contents

MMP file

The following capabilities and libraries are required:

CAPABILITY NONE
LIBRARY avkon.lib

Header file

#include <akninfopopupnotecontroller.h>
 
// Set the note as the member variable of your application view (for example, CAknView)
private:
CAknInfoPopupNoteController* iNote;

Source file

void CMyView::ShowNoteL()
{
if (!iNote)
{
// Create the note once
iNote = CAknInfoPopupNoteController::NewL();
}
// Hide the note. The last note may be visible when creating the second
iNote->HideInfoPopupNote();
 
// Set the time delay period before the popup is shown (in milliseconds)
iNote->SetTimeDelayBeforeShow(100);
 
// Set the time period of how long the popup is in the view (in milliseconds)
iNote->SetTimePopupInView(2*1000);
 
// Note text
iNote->SetTextL(_L("CAknInfoPopupNoteController"));
 
// Note position
iNote->SetPositionAndAlignment(TPoint(10,10),EHLeftVTop);
 
// Show note
iNote->ShowInfoPopupNote();
}
 
void CMyView::DoDeactivate()
{
// TODO: Your view deactivate code here
 
// Remeber to delete the note
delete iNote;
}


Postconditions

The note is shown.

This page was last modified on 28 September 2012, at 09:11.
76 page views in the last 30 days.
×