Removing item-specific commands from the toolbar

This document describes the changes required to your code to remove the item-specific commands from the toolbar.

Remove all item-specifc commands from your resource files.

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";
                        }  
                    };
                };
            };
        };
    }