diff -r 51a74ef9ed63 -r ae94777fff8f Symbian3/SDK/Source/GUID-244631CF-03F9-4C48-9802-682A76E9ECCC.dita --- a/Symbian3/SDK/Source/GUID-244631CF-03F9-4C48-9802-682A76E9ECCC.dita Wed Mar 31 11:11:55 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-244631CF-03F9-4C48-9802-682A76E9ECCC.dita Fri Jun 11 12:39:03 2010 +0100 @@ -1,87 +1,87 @@ - - - - - -Hiding -item-specific commands in submenusThis document describes the changes required to your application's -code for hiding item-specific commands in submenus. - -You can hide item-specific -commands in submenus in either of the following ways: - -

Add the EEikMenuItemSpecific flag to submenu resource -definitions. As a result, the submenu items are displayed in the stylus pop-up -menu at the same level as main menu items.

RESOURCE MENU_PANE r_calendarapiexample_entries_menu_option - { - items = - { - MENU_ITEM - { - command = ECalendarAPIexampleOption; - txt = qtn_options_option; - cascade = r_calendarapiexample_entries_menu; - // ----Add the following line----- - flags = EEikMenuItemSpecific; - //-------------------------------------- - }, - MENU_ITEM - { - command = ECalendarAPIexampleDeleteAll; - txt = qtn_options_delet_all; - } - }; - } -RESOURCE MENU_PANE r_calendarapiexample_entries_menu - { - items = - { - MENU_ITEM { command = ECalendarAPIexampleCmdDelete; txt = qtn_options_delete;} - }; - }

For example, the following illustrations show how the -item-specific submenu item (Delete) is hidden in the -options menu and displayed in the stylus pop-up menu by setting the EEikMenuItemSpecific flag.

- Before setting the EEikMenuItemSpecific flag - - -After setting the EEikMenuItemSpecific flag - -
-

Add the EEikMenuItemSpecificListQuery flag to -submenu resource definitions. As a result, the submenu items are displayed -in a list query dialog box within stylus pop-up menus.

RESOURCE MENU_PANE r_calendarapiexample_entries_menu_option - { - items = - { - MENU_ITEM - { - command = ECalendarAPIexampleOption; - txt = qtn_options_option; - cascade = r_calendarapiexample_entries_menu; - //----Add the following line---------- - flags = EEikMenuItemSpecificListQuery; - //--------------------------------------- - }, - MENU_ITEM - { - command = ECalendarAPIexampleDeleteAll; - txt = qtn_options_delet_all; - } - }; - } -

For example, the following illustration shows how the Delete command -is displayed in the list query dialog box under option by -setting the EEikMenuItemSpecificListQuery flag.

-After setting the EEikMenuItemSpecificListQuery flag - -
-
-
-
+ + + + + +Hiding +item-specific commands in submenusThis document describes the changes required to your application's +code for hiding item-specific commands in submenus. + +You can hide item-specific +commands in submenus in either of the following ways: + +

Add the EEikMenuItemSpecific flag to submenu resource +definitions. As a result, the submenu items are displayed in the stylus pop-up +menu at the same level as main menu items.

RESOURCE MENU_PANE r_calendarapiexample_entries_menu_option + { + items = + { + MENU_ITEM + { + command = ECalendarAPIexampleOption; + txt = qtn_options_option; + cascade = r_calendarapiexample_entries_menu; + // ----Add the following line----- + flags = EEikMenuItemSpecific; + //-------------------------------------- + }, + MENU_ITEM + { + command = ECalendarAPIexampleDeleteAll; + txt = qtn_options_delet_all; + } + }; + } +RESOURCE MENU_PANE r_calendarapiexample_entries_menu + { + items = + { + MENU_ITEM { command = ECalendarAPIexampleCmdDelete; txt = qtn_options_delete;} + }; + }

For example, the following illustrations show how the +item-specific submenu item (Delete) is hidden in the +options menu and displayed in the stylus pop-up menu by setting the EEikMenuItemSpecific flag.

+ Before setting the EEikMenuItemSpecific flag + + +After setting the EEikMenuItemSpecific flag + +
+

Add the EEikMenuItemSpecificListQuery flag to +submenu resource definitions. As a result, the submenu items are displayed +in a list query dialog box within stylus pop-up menus.

RESOURCE MENU_PANE r_calendarapiexample_entries_menu_option + { + items = + { + MENU_ITEM + { + command = ECalendarAPIexampleOption; + txt = qtn_options_option; + cascade = r_calendarapiexample_entries_menu; + //----Add the following line---------- + flags = EEikMenuItemSpecificListQuery; + //--------------------------------------- + }, + MENU_ITEM + { + command = ECalendarAPIexampleDeleteAll; + txt = qtn_options_delet_all; + } + }; + } +

For example, the following illustration shows how the Delete command +is displayed in the list query dialog box under option by +setting the EEikMenuItemSpecificListQuery flag.

+After setting the EEikMenuItemSpecificListQuery flag + +
+
+
+
\ No newline at end of file