diff -r 4816d766a08a -r f345bda72bc4 Symbian3/PDK/Source/GUID-8845AFD6-F238-43FF-BD7B-902CD8CD3973.dita --- a/Symbian3/PDK/Source/GUID-8845AFD6-F238-43FF-BD7B-902CD8CD3973.dita Tue Mar 30 11:42:04 2010 +0100 +++ b/Symbian3/PDK/Source/GUID-8845AFD6-F238-43FF-BD7B-902CD8CD3973.dita Tue Mar 30 11:56:28 2010 +0100 @@ -1,39 +1,39 @@ - - - - - -Showing -and hiding toolbar items -

You can set toolbar items hidden or dimmed if a toolbar function is temporary -unavailable.

-

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

-void CMyAppView::SetButtonUnavailable( TBool aHide ) - { - CAknToolbar* toolbar = Toolbar(); - if ( toolbar ) - { - if ( aHide ) - { - // To show the item again: - // toolbar->HideItem( KButtonId, EFalse, ETrue ); - toolbar->HideItem( KButtonId, ETrue, ETrue ); - } - else - { - // To undim the item again: - // toolbar->SetItemDimmed( KButtonId, EFalse, ETrue ); - toolbar->SetItemDimmed( KButtonId, ETrue, ETrue ); - } - } - } - + + + + + +Showing +and hiding toolbar items +

You can set toolbar items hidden or dimmed if a toolbar function is temporary +unavailable.

+

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

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