diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-8F2D8656-B7F4-4BDA-81CB-8440A2FDDD82.dita --- a/Symbian3/PDK/Source/GUID-8F2D8656-B7F4-4BDA-81CB-8440A2FDDD82.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-8F2D8656-B7F4-4BDA-81CB-8440A2FDDD82.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,43 +1,43 @@ - - - - - -Dimming -or hiding toolbar extension items -

You can dim or hide toolbar extension items if an extension item function -is not available in certain cases.

-

The example below shows how to set the extension button unavailable. In -the example, the boolean parameter aHide indicates if the -button should be hidden or dimmed.

-void CMyAppView::SetExtensionButtonUnavailableL( TBool aHide ) - { - CAknToolbar* toolbar = Toolbar(); - if ( toolbar ) - { - CAknToolbarExtension* toolbarExtension = toolbar->ToolbarExtension(); - if ( toolbarExtension ) - { - if ( aHide ) - { - // To show the item again: - // toolbar->HideItem( KExtensionButtonId, EFalse ); - toolbarExtension->HideItemL( KExtensionButtonId, ETrue ); - } - else - { - // To undim the item again: - // toolbar->SetItemDimmed( KExtensionButtonId, EFalse ); - toolbarExtension->SetItemDimmed( KExtensionButtonId, ETrue ); - } - } - } - } - + + + + + +Dimming +or hiding toolbar extension items +

You can dim or hide toolbar extension items if an extension item function +is not available in certain cases.

+

The example below shows how to set the extension button unavailable. In +the example, the boolean parameter aHide indicates if the +button should be hidden or dimmed.

+void CMyAppView::SetExtensionButtonUnavailableL( TBool aHide ) + { + CAknToolbar* toolbar = Toolbar(); + if ( toolbar ) + { + CAknToolbarExtension* toolbarExtension = toolbar->ToolbarExtension(); + if ( toolbarExtension ) + { + if ( aHide ) + { + // To show the item again: + // toolbar->HideItem( KExtensionButtonId, EFalse ); + toolbarExtension->HideItemL( KExtensionButtonId, ETrue ); + } + else + { + // To undim the item again: + // toolbar->SetItemDimmed( KExtensionButtonId, EFalse ); + toolbarExtension->SetItemDimmed( KExtensionButtonId, ETrue ); + } + } + } + } +
\ No newline at end of file