diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-6FD4E7A4-D215-4CFB-BC7A-23065DE95C5C.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-6FD4E7A4-D215-4CFB-BC7A-23065DE95C5C.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,30 @@ + + + + + +Add +a view to the control stack +

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.

Ensure that the view is constructed before adding +it to the 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.

+
\ No newline at end of file