This document describes the changes required to your code to remove the item-specific commands from the toolbar.
Let us consider the following code snippet as a part of an application that supports single-tap functionality. As single-tap functionality does not support highlighting an item in a list, the item-specific commands are not required to be in a toolbar and therefore can be removed.
RESOURCE AVKON_TOOLBAR r_application_toolbar { flags = KAknToolbarFlexiblePosition; items = { // Top level buttons //----------------------------------------------------------------------------- /*------Remove this item specific command (Delete)----------- TBAR_CTRL { type = EAknCtButton; id = EToolbarDelete; control = AVKON_BUTTON { flags = KAknButtonSizeFitText;; states = { AVKON_BUTTON_STATE { bmpfile = "\\resource\\apps\\delete.mbm"; bmpid = ECalInterIcon_delete_unpressed_38x38; press_bmpid = EMCalInterIcon_delete_pressed_38x38; helptxt = "Delete"; } }; }; }, ----------------------------------------------------------------------------- */ TBAR_CTRL { type = EAknCtButton; id = EToolbarHelp; control = AVKON_BUTTON { flags = 0; states = { AVKON_BUTTON_STATE { bmpfile = "\\resource\\apps\\help.mbm"; bmpid = ECalInterIcon_undo_unpressed_38x38; press_bmpid = ECalInterIcon_undo_pressed_38x38; helptxt = "Help"; } }; }; }; }; }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.