To enable a view to receive key events, add a view to the control stack using the following method. This method adds a control into the application UI's control stack.
IMPORT_C void AddToStackL( const MCoeView& aView, CCoeControl *aControl, TInt aPriority=ECoeStackPriorityDefault, TInt aStackingFlags=ECoeStackFlagStandard );
The following code snippet shows adding a view to the control stack:
/** Add aControl to Cone's control stack with priority aPriority and behaviour aStackingFlags.\n */ void CNewView::AddToStackL( CCoeControl* aControl, TInt aPriority, TInt aStackingFlags ) { iCCoeAppUi.AddToStackL( *this, aControl, aPriority, aStackingFlags); }
For more information on writing control stack, see How to write controls.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.