equal
deleted
inserted
replaced
7 Nokia Corporation - initial contribution. |
7 Nokia Corporation - initial contribution. |
8 Contributors: |
8 Contributors: |
9 --> |
9 --> |
10 <!DOCTYPE concept |
10 <!DOCTYPE concept |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
11 PUBLIC "-//OASIS//DTD DITA Concept//EN" "concept.dtd"> |
12 <concept id="GUID-494AF38D-CE0C-4B4C-BE44-2FC7482F4B7B" xml:lang="en"><title>Hiding |
12 <concept id="GUID-494AF38D-CE0C-4B4C-BE44-2FC7482F4B7B" xml:lang="en"><title>Hiding and showing stylus pop-up menu items</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
13 and showing stylus pop-up menu items</title><prolog><metadata><keywords/></metadata></prolog><conbody> |
13 <p>To hide and show stylus pop-up menu items, use the method <xref href="GUID-FB7D03CC-6FE6-3B2E-997F-A220A92BF5E8.dita#GUID-FB7D03CC-6FE6-3B2E-997F-A220A92BF5E8/GUID-67820FD4-052E-3011-B563-B12A9A04FC78"><apiname>CAknStylusPopUpMenu::SetItemDimmed()</apiname></xref> in the class. </p> |
14 <p>To hide and show stylus pop-up menu items, use the method <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknStylusPopUpMenu.html#44ace66d760143c3816baeacf6dfaeea" format="application/java-archive">SetItemDimmed()</xref> in the class <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknStylusPopUpMenu.html" format="application/java-archive"><codeph>CAknStylusPopUpMenu</codeph></xref>. </p> |
14 <codeblock xml:space="preserve">// You can remove the menu item dynamically according to the command id. For example: |
15 <p><draft-comment time="2008-05-15T14:45" translate="no">Add sample code here.</draft-comment></p> |
15 iPopupMenu->RemoveMenuItem( StylusMenuCommand1 ); |
|
16 |
|
17 // You can dim (hide) a menu item without removing it |
|
18 iPopupMenu->SetItemDimmed( StylusMenuDynamicAdd, ETrue ); |
|
19 |
|
20 // You can un-dim(show) the menu item again: |
|
21 iPopupMenu->SetItemDimmed( StylusMenuDynamicAdd, EFalse ); |
|
22 </codeblock> |
16 </conbody></concept> |
23 </conbody></concept> |