diff -r 43e37759235e -r 51a74ef9ed63 Symbian3/SDK/Source/GUID-A32FFE7A-A531-48D4-AD23-1CC13CB7F4B7.dita --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Symbian3/SDK/Source/GUID-A32FFE7A-A531-48D4-AD23-1CC13CB7F4B7.dita Wed Mar 31 11:11:55 2010 +0100 @@ -0,0 +1,29 @@ + + + + + +Dynamic +initialization of the toolbar +

Use the method MAknToolbarObserver::DynInitToolbarL() to set properties +of toolbar items before the toolbar is shown.

DynInitToolbarL() is +used for the toolbar notifying the observer when the toolbar is about to be +shown. This way you can use the toolbar observer to initialize the toolbar +before showing it, for example by dimming or hiding certain controls if their +functions are not available.

The example below shows how to hide +a toolbar item before the toolbar is drawn.

void CMyAppView::DynInitToolbarL( TInt aResourceId, + CAknToolbar* toolbar ) + { + if ( toolbar ) + { + toolbar->HideItem( KButtonId, ETrue, EFalse ); + } + } +
+
\ No newline at end of file