×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Double Tap on list == menu pop up

    Hi folks,
    I have a very weird problem.

    I have a carbide-generated S60v5 form which contains nothing but a list and a menu which is bound to the left CBA button.

    Whenever the user double-taps a list item on the XM5800, the CBA menu pops up.

    Anybody, any ideas why this happens?
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166

    Re: Double Tap on list == menu pop up

    maybe you could finally check the offerkey event function I suggestd month ago: http://discussion.forum.nokia.com/fo...d.php?t=163102

    Also try commenting code out from your HandleListBoxEventsL & HandlePointerEventL functions so you could see which part is doing this. It would be better to try out different things, do full debugging to see all functions involved, than just post same question over and over again.

  3. #3
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: Double Tap on list == menu pop up

    Hi,
    thank you so much for your offer to help me!

    I have now checked the following: first of all, void CLocaNoteListView::HandleListBoxEventL(. I always get two events here: PenDownonItem, and then ItemClicked. But when the top item is clicked, the menu pops up - else not.

    The HandleKeyEvent in the AppUi never ever gets called. It has the following code, but never gets invoked:
    Code:
    TKeyResponse CLocaNoteAppUi::HandleKeyEventL(
    		const TKeyEvent& /*aKeyEvent*/, TEventCode /*aType*/ )
    	{
    	// The inherited HandleKeyEventL is private and cannot be called
    	// [[[ begin generated region: do not modify [Generated Contents]
    	// ]]] end generated region [Generated Contents]
    	
    	return EKeyWasNotConsumed;
    	}

    I then went on to add the following code to the view:
    Code:
    TKeyResponse CLocaNoteListViewView::OfferKeyEventL( const TKeyEvent& aKeyEvent, TEventCode aType )
    {
    
    return EKeyWasNotConsumed;
    
    }
    However, it never gets called either.
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  4. #4
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: Double Tap on list == menu pop up

    Hi,
    I have now removed all the code in the HandleItemClickedL (replaced it with a return) routine and still get the bogus menu popup!

    The two handlers look like this:
    Code:
    /**
     *	Handle the itemClicked event
     */
    void CLocaNoteListView::HandleLstFilesItemClickedL( 
    		CEikListBox* aListBox,
    		TListBoxEvent /*anEventType*/ )
    	{
    		if(long_tap==true)
    			{
    			long_tap=false;
    			return;
    			}
    		TInt currentIndex = aListBox->CurrentItemIndex();
    		CTextListBoxModel* model = ((CEikTextListBox*)aListBox)->Model();
    		MDesCArray* itemArray = model->ItemTextArray();
    		TFileName file=itemArray->MdcaPoint(currentIndex);
    		
    		if(file.Find(_L("..."))!=KErrNotFound)
    		{//this is an uplink
            CLocaNoteAppUi* appUi= (static_cast<CLocaNoteAppUi*>((CCoeEnv::Static())->AppUi()));
    
    		appUi->iFNAppendix.Delete(appUi->iFNAppendix.Length()-1,1);
    		while(appUi->iFNAppendix.Length()>0 && appUi->iFNAppendix[appUi->iFNAppendix.Length()-1]!='\\')appUi->iFNAppendix.Delete(appUi->iFNAppendix.Length()-1,1);
    			//Make el list
    			SetupList(true);
    		}
    		else if(file.Find(_L("["))==KErrNotFound)
    		{//I is a file	
    			file.Append(_L(".png"));
    			
    			//remove the number for the list
    			file.Trim();
    			while(file.Length()>0 && file[0]!='\t')file.Delete(0,1);
    
    			//now assign this to fileList
    			CLocaNoteAppUi* temp=static_cast<CLocaNoteAppUi*>(CEikonEnv::Static()->EikAppUi());
    			dump.Copy(file);
    			temp->ActivateLocalViewL(TUid::Uid(ELocaNotePaintViewID),TUid::Uid(1),dump);	
    		}
    		else
    		{//I is a folder
            CLocaNoteAppUi* appUi= (static_cast<CLocaNoteAppUi*>((CCoeEnv::Static())->AppUi()));
            
            file.Trim();
    		while(file.Length()>0 && file[0]!='\t')file.Delete(0,1);
            file.Trim();
    		
    		//remove []
    		file.Delete(0,1);
    		file.Delete(file.Length()-1,1);
    		
    		appUi->iFNAppendix.Append(file);
    		appUi->iFNAppendix.Append(_L("\\"));
    		
    		//Make el list
    		SetupList(true);
    		}
    		
    	}
    
    
    void CLocaNoteListView::HandlePointerEventL(const TPointerEvent& aPointerEvent)
    	{
    	// Pass the pointer event to Long tap detector component
    	if( aPointerEvent.iPosition.iY < (Rect().iTl.iY + LstFiles()->ItemHeight() * LstFiles()->Model()->ItemTextArray()->MdcaCount() ))
    	{
    		//removing this does NOT fix the dual menu eeker
    		iLongTapDetector->PointerEventL(aPointerEvent);
    	}
    	
    	// Call base class HandlePointerEventL()
    	if(long_tap==false)
    	{
    	CCoeControl::HandlePointerEventL(aPointerEvent);
    	}
    	long_tap=false;
    	}
    Last edited by tamhanna; 2009-05-26 at 23:46.
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

  5. #5
    Super Contributor
    Join Date
    Jul 2008
    Posts
    2,020

    Re: Double Tap on list == menu pop up

    Hi Symbianyucca,
    could you please tell me a bit more?
    The lines above are the best I have to offer.If anyone of you is of more advanced knowledge, I ask for your patience and understanding! - unknown arab poet
    http://www.tamoggemon.com - Symbian blog - Windows Phone blog
    My other blogs:
    webOS blog iPhone blog BlackBerry blog Samsung bada blog Android blog

Similar Threads

  1. Double Style Markable List ??
    By PopAndDestroy in forum Symbian
    Replies: 1
    Last Post: 2008-10-13, 19:44
  2. Is there away to make the Command menu pop up?
    By Woody_FX in forum Mobile Java General
    Replies: 0
    Last Post: 2003-11-21, 23:17
  3. Firmware bug or code bug displaying list on 3650
    By blackjack75 in forum Mobile Java General
    Replies: 2
    Last Post: 2003-09-24, 19:52
  4. horizontal scrolling in select list menu for 3650
    By sererot in forum Browsing and Mark-ups
    Replies: 0
    Last Post: 2003-07-10, 13:17
  5. Menu Select button using List object
    By abstractworlds in forum Mobile Java General
    Replies: 4
    Last Post: 2002-12-09, 13:08

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×