×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Oct 2007
    Posts
    18

    Red face How to detect OK or Cancel option clicked by user in CAknSettingItemList::EditIteml

    Hi, i have a popup list and i wish to detect whether the user select OK / cancel. But the TBool storeValue is always true, i have no idea of how to detect the user selection option from here. Please help me my friend.

    Code:
    void UI::EditItemL ( TInt aIndex, TBool aCalledFromMenu )
    	{
    	CAknSettingItem* item = ( *SettingItemArray() )[aIndex];
    	switch ( item->Identifier() )
    		{
    		}
    	
    	CAknSettingItemList::EditItemL( aIndex, aCalledFromMenu );
    	
    	TBool storeValue = ETrue;
    	switch ( item->Identifier() )
    		{
    		}
    		
    	if ( storeValue )
    		{
    		item->StoreL();
    		SaveSettingValuesL(item->SettingNumber());
    		}	
    	}

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

    Re: How to detect OK or Cancel option clicked by user in CAknSettingItemList::EditIte

    What happens if the user presses left or right when they are on the line and
    they do not bring up the popup list?

Similar Threads

  1. how to detect if user has disallowed the gprs access ?
    By tanc08 in forum Mobile Java Networking & Messaging & Security
    Replies: 3
    Last Post: 2006-11-13, 23:06
  2. weird CANCEL button behaviour
    By securityfocus in forum Symbian
    Replies: 0
    Last Post: 2005-03-18, 14:24
  3. Replies: 0
    Last Post: 2004-11-24, 18:49
  4. Replies: 2
    Last Post: 2004-09-15, 22:47
  5. user detect
    By plkilroy in forum Browsing and Mark-ups
    Replies: 2
    Last Post: 2003-07-01, 04:58

Posting Permissions

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