--- a/Symbian3/PDK/Source/GUID-4A66B46E-8A23-42E4-ADAD-B124A36B180A.dita Fri Jul 02 12:51:36 2010 +0100
+++ b/Symbian3/PDK/Source/GUID-4A66B46E-8A23-42E4-ADAD-B124A36B180A.dita Fri Jul 16 17:23:46 2010 +0100
@@ -12,30 +12,9 @@
<concept id="GUID-4A66B46E-8A23-42E4-ADAD-B124A36B180A" xml:lang="en"><title>Showing
and hiding stylus pop-up menu</title><prolog><metadata><keywords/></metadata></prolog><conbody>
<p>Use the method <xref href="jar:GUID-759FBC7F-5384-4487-8457-A8D4B76F6AA6.jar!/html/classCAknStylusPopUpMenu.html#2aab09ce484efcf807cb1191dbd08062" format="application/java-archive"><codeph>ShowMenu()</codeph></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> to show the stylus pop-up menu.</p>
-<p>Usually, the pop-up menu must not be directly displayed in the <codeph>HandlePointerEventL</codeph> of
-a <codeph>CCoeControl</codeph>. Use the <codeph>CAknLongTapDetector</codeph>
-to handle the Llong Tap event and show the pop-up on the <codeph>HandleLongTapEventL</codeph>,
-which is the implementation to the interface <codeph>MAknLongTapDetectorCallBack</codeph>.</p>
-<p>The following code snippets illustrates how to show pop-up menu:</p>
-<codeblock xml:space="preserve">CAknLongTapDetector * iLongTapDetector;
-// "this" implement the interface MAknLongTapDetectorCallBack
-iLongTapDetector = CAknLongTapDetector::NewL( this );
-
-// pass the process to the long tap detector
-void XXXX::HandlePointerEventL(
- const TPointerEvent& aPointerEvent)
- {
- iLongTapDetector->PointerEventL( aPointerEvent );
- // Call base class HandlePointerEventL()
- CCoeControl::HandlePointerEventL(aPointerEvent);
- }
-// handle long tap detector event to show the stylus popup
-void XXXX::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& aPenEventScreenLocation )
- {
- iPopupMenu->SetPosition(
- aPenEventScreenLocation ,
- CAknStylusPopUpMenu::EPositionTypeRightBottom );
- iPopupMenu->ShowMenu();
- }
-</codeblock>
+<p><draft-comment time="2008-05-19T11:33" translate="no">How is the menu dismissed/hidden?
+Automatically after a command has been selected or when the user taps outside
+the menu?</draft-comment></p>
+<p><draft-comment time="2008-05-19T11:35" translate="no">Add sample code on showing and hiding
+the menu here.</draft-comment></p>
</conbody></concept>
\ No newline at end of file