diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-6FD4E7A4-D215-4CFB-BC7A-23065DE95C5C.dita --- a/Symbian3/SDK/Source/GUID-6FD4E7A4-D215-4CFB-BC7A-23065DE95C5C.dita Wed Mar 31 11:11:55 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-6FD4E7A4-D215-4CFB-BC7A-23065DE95C5C.dita Fri Jun 11 12:39:03 2010 +0100 @@ -1,30 +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.

+ + + + + +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