Categories: Symbian C++ | S60 | How To | UI | Code Examples
This page was last modified 15:20, 24 June 2008.
Preview Pop-up
From Forum Nokia Wiki
The preview pop-up component is a floating non-focusable AVKON pop-up component. Its purpose is to provide a common pop-up frame that applications can use to show additional information to the user. It is part of the E-Series SDK plugin which can be downloaded here
Starting with S60 3rd Edition, supporting Feature Pack 2 this component is part of the platform offering thus it can be found in the public SDK.
Header file:
#include <aknpreviewpopupcontroller.h> #include <aknpreviewpopupobserver.h>
LIBRARY :
Avkon.lib
Constructing a Preview Pop-up
// CCoeControl that will be shown in the poup iPopupContent = CPreviewPopupContent::NewL(rect); //iPopupController is CAknPreviewPopUpController object iPopupController = CAknPreviewPopUpController::NewL(*iPopupContent, CAknPreviewPopUpController::ELayoutDefault); // Heading to be shown.Hidden by default iPopupController->SetHeadingTextL(_L("Heading")); //Listen for notifications iPopupController->AddObserverL( *this );
Showing the popup
iPopupController->SetPositionByHighlight(Rect()); iPopupController->ShowPopUp();
Hiding the popup
iPopupController->HidePopUp();
Getting Notifications :
The MAknPreviewPopUpObserver is used to get notifications of the popup. Derive your class from and implement the pure virtual function as below:
void CPreviewPopUpExAppView::HandlePreviewPopUpEventL(CAknPreviewPopUpController* /*aController*/,TPreviewPopUpEvent aEvent ) { switch(aEvent) { case EPreviewPopUpShown: CEikonEnv::InfoWinL(_L("Popup"),_L("Shown")); break; case EPreviewPopUpHidden: CEikonEnv::InfoWinL(_L("Popup"),_L("Hidden")); break; } }
Example Application
http://wiki.forum.nokia.com/index.php/Image:PreviewPopUpEx.zip
| Related Discussions | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| give me solution of one panic error E32USER-CBase 90 | Tanya | Symbian User Interface | 7 | 2007-03-28 12:59 |
| Decide when to use camera flash | Martin_Malek | Symbian Tools & SDKs | 1 | 2007-09-05 14:20 |
| Pop-Port specification | Dorticos | PC Suite API and PC Connectivity SDK | 1 | 2003-04-28 11:17 |
| AppArcServerThread BackupSrv 0 error.. help pls... | mickeyREN | General Symbian C++ | 5 | 2003-05-02 06:15 |
| Problems with the Content Listing Framework | bhapca | Symbian Media (Graphics & Sounds) | 1 | 2008-03-08 00:34 |
