diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-494AF38D-CE0C-4B4C-BE44-2FC7482F4B7B.dita --- a/Symbian3/SDK/Source/GUID-494AF38D-CE0C-4B4C-BE44-2FC7482F4B7B.dita Wed Mar 31 11:11:55 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-494AF38D-CE0C-4B4C-BE44-2FC7482F4B7B.dita Fri Jun 11 12:39:03 2010 +0100 @@ -1,16 +1,23 @@ - - - - - -Hiding -and showing stylus pop-up menu items -

To hide and show stylus pop-up menu items, use the method SetItemDimmed() in the class CAknStylusPopUpMenu.

-

Add sample code here.

+ + + + + +Hiding and showing stylus pop-up menu items +

To hide and show stylus pop-up menu items, use the method CAknStylusPopUpMenu::SetItemDimmed() in the class.

+// You can remove the menu item dynamically according to the command id. For example: +iPopupMenu->RemoveMenuItem( StylusMenuCommand1 ); + +// You can dim (hide) a menu item without removing it +iPopupMenu->SetItemDimmed( StylusMenuDynamicAdd, ETrue ); + +// You can un-dim(show) the menu item again: +iPopupMenu->SetItemDimmed( StylusMenuDynamicAdd, EFalse ); +
\ No newline at end of file