diff -r 80ef3a206772 -r 48780e181b38 Symbian3/SDK/Source/GUID-4A66B46E-8A23-42E4-ADAD-B124A36B180A.dita --- a/Symbian3/SDK/Source/GUID-4A66B46E-8A23-42E4-ADAD-B124A36B180A.dita Fri Jul 16 17:23:46 2010 +0100 +++ b/Symbian3/SDK/Source/GUID-4A66B46E-8A23-42E4-ADAD-B124A36B180A.dita Tue Jul 20 12:00:49 2010 +0100 @@ -12,30 +12,9 @@ Showing and hiding stylus pop-up menu

Use the method ShowMenu() in the class CAknStylusPopUpMenu to show the stylus pop-up menu.

-

Usually, the pop-up menu must not be directly displayed in the HandlePointerEventL of -a CCoeControl. Use the CAknLongTapDetector -to handle the Llong Tap event and show the pop-up on the HandleLongTapEventL, -which is the implementation to the interface MAknLongTapDetectorCallBack.

-

The following code snippets illustrates how to show pop-up menu:

-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(); - } - +

How is the menu dismissed/hidden? +Automatically after a command has been selected or when the user taps outside +the menu?

+

Add sample code on showing and hiding +the menu here.

\ No newline at end of file