×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    23

    Use 'Red' button to cancel query dialog?

    Hi,

    It is my query dialog code below.
    Code:
    CAknListQueryDialog * methoddlg = new (ELeave) CAknListQueryDialog(&selecteOption);
    methoddlg->PrepareLC(R_ALWAYS_PROMPT);
    methoddlg->SetItemTextArray(methodArray);						methoddlg->SetOwnershipType(ELbmDoesNotOwnItemArray);
    methoddlg->RunLD();
    
    RESOURCE AVKON_LIST_QUERY r_always_prompt
    	{
    	flags = EGeneralQueryFlags;
    	softkeys = R_AVKON_SOFTKEYS_OK_CANCEL;
    	items =
    		{
    		AVKON_LIST_QUERY_DLG_LINE
    			{
    			control = AVKON_LIST_QUERY_CONTROL
    				{
    				listtype = EAknCtSinglePopupMenuListBox;
    				listbox = AVKON_LIST_QUERY_LIST
    					{
    					};
    				heading = "XXX";
    				};
    			}
    		};
    	}
    According to that, the only way to cancel the dialog is press 'Cancel' button (right softkey).
    Is it possible that the dialog can be canceled by 'Red' key, which is used to hangup the call normally?

  2. #2
    Super Contributor
    Join Date
    Nov 2004
    Posts
    1,009

    Re: Use 'Red' button to cancel query dialog?

    You can make use of HandleWsEventL() to take the red key event in your app. Check the scancode of Red key and EEventkeyDown

    and terminate your dialog in this.
    Regards,
    Shafali

Similar Threads

  1. Is it possible change the position of query dialog
    By sriramadasu in forum Symbian User Interface
    Replies: 1
    Last Post: 2008-11-03, 08:42
  2. Is it possible change the position of query dialog
    By sriramadasu in forum Symbian
    Replies: 2
    Last Post: 2008-10-30, 07:53
  3. Replies: 9
    Last Post: 2007-06-01, 07:39
  4. how to cancel the IAP Dialog ??
    By flokriesel in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2006-09-13, 22:23
  5. Help me! Is it possible to make button inside a dialog?
    By jaakko81 in forum Symbian User Interface
    Replies: 4
    Last Post: 2006-03-08, 05:29

Posting Permissions

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