Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 07:43, 8 May 2008.

CS000945 - Info Popup Note API

From Forum Nokia Wiki


ID CS000945 Creation date May 8, 2008
Platform S60 3rd Edition, MR Tested on devices Nokia N95
Category Symbian C++ Subcategory UI


Keywords (APIs, classes, methods, functions): CAknInfoPopupNoteController

Overview

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).


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.

Related Discussions
Thread Thread Starter Forum Replies Last Post
MAC of connected access point nadav70 General Symbian C++ 6 2008-05-05 23:46
How To Develope Vibration on MIDP1.0 supported device sachinwarang Mobile Java General 1 2006-03-07 13:37
changing menu pane without using Dyn... saurbh_g Symbian User Interface 2 2005-11-24 05:10
Nokia 6131 NFC apis/docs peterblazejewicz Developer Resources Feedback (Documentation, Examples, Training) 8 2007-03-06 10:43
Is there a "Wait Note" equivalent in Java fsukhu Mobile Java General 8 2007-02-10 07:59
 
Powered by MediaWiki