Archived:Info Popup Note API in Symbian C++
hamishwillee
(Talk | contribs) m (Hamishwillee - Bot update - Fix metadata) |
hamishwillee
(Talk | contribs) m (Hamishwillee - Tidy wiki text. Suggest "remove from archived") |
||
| Line 1: | Line 1: | ||
| + | [[Category:Symbian C++]][[Category:Code Snippet]][[Category:UI]][[Category:S60 3rd Edition (initial release)]] | ||
{{Archived|timestamp=20120313130348|user=roy.debjit| }} | {{Archived|timestamp=20120313130348|user=roy.debjit| }} | ||
| − | [[ | + | {{ReviewForRemovalFromArchive|user=[[User:Hamishwillee|<br />----]] 09:11, 28 September 2012 (EEST)|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.}} |
| − | + | {{Abstract|{{Icode|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).}} | |
{{ArticleMetaData <!-- v1.2 --> | {{ArticleMetaData <!-- v1.2 --> | ||
| Line 25: | Line 26: | ||
|author= [[User:Tepaa]] | |author= [[User:Tepaa]] | ||
<!-- The following are not in current metadata --> | <!-- The following are not in current metadata --> | ||
| − | |||
|id= CS000945 | |id= CS000945 | ||
}} | }} | ||
| − | |||
| − | |||
| − | |||
| − | |||
==MMP file== | ==MMP file== | ||
Latest revision as of 09:11, 28 September 2012
Archived: 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.
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
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.

