×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Registered User
    Join Date
    Mar 2005
    Posts
    24

    Multiselection List Query Dialog auto select the highlighted item on exit?

    Dear all,

    I am using S60 3rd Ed C++ developement environment. There is a problem with the Multiselection List Query Dialog. The Multiselection List Query Dialog will select the highlighted item on exit automatically when no items are selected, that means, I cannot unselect all the items. Is it some kind of design feature of multi-selection dialog or problem with my code ?


    //----------------------
    RESOURCE DIALOG r_demo_multiselection_query
    {
    flags = EGeneralQueryFlags;
    buttons = R_AVKON_SOFTKEYS_OK_CANCEL;
    items =
    {
    DLG_LINE
    {
    type = EAknCtListQueryControl;
    id = EListQueryControl;
    control = AVKON_LIST_QUERY_CONTROL
    {
    listtype = EAknCtSingleGraphicPopupMenuListBox;
    listbox = LISTBOX
    {
    flags = EAknListBoxMultiselectionList;
    height = 3;
    width = 3;
    array_id = r_demo_multiselection_query_list_item;
    };
    heading = "Select items:";
    };
    }
    };
    }

    RESOURCE ARRAY r_demo_multiselection_query_list_item
    {
    items =
    {
    LBUF { txt = "1\tItem1"; },
    LBUF { txt = "1\tItem2"; },
    LBUF { txt = "1\tItem3"; },
    LBUF { txt = "1\tItem4"; },
    LBUF { txt = "1\tItem5"; }
    };
    }


    // -----------
    CArrayFixFlat<TInt>* indexArray = new(ELeave)CArrayFixFlat<TInt>(5);
    CleanupStack::PushL(indexArray);
    CAknListQueryDialog* dlg = new (ELeave) CAknListQueryDialog(indexArray);
    if ( dlg->ExecuteLD(R_DEMO_MULTISELECTION_QUERY ) )
    {

    // ok pressed, indexArray is the array of the indices of the

    // selected items.

    }
    CleanupStack::PopAndDestroy();// indexArray

  2. #2
    Registered User
    Join Date
    Aug 2007
    Location
    Sevastopol, Ukraine
    Posts
    25

    Re: Multiselection List Query Dialog auto select the highlighted item on exit?

    I think there are no problems with your code.
    This is a feature with Multiselection List which allows user to select a single item Just pressing "OK" button instead of "mark-uping" just signle one.
    If no items are needed user should press "cancel" button.
    Last edited by Carbider; 2007-11-20 at 11:35. Reason: mistake

  3. #3
    Registered User
    Join Date
    May 2010
    Location
    Egypt
    Posts
    433

    Re: Multiselection List Query Dialog auto select the highlighted item on exit?

    I know this is a very old thread, but rather than creating a new one and describing my problem all over again,

    I'm facing the same problem, Is there a flag to prevent pressing "OK" from selecting the highlighted item if I want my whole list items unchecked ?

    Edit:
    After reading another 50 Threads taking about CAknListQueryDialog, I found an answer to this problem, which is replacing R_AVKON_SOFTKEYS_OK_CANCEL in resource file with R_AVKON_SOFTKEYS_DONE_BACK


    Best Regards.
    Last edited by ashraf fawzy; 2011-06-04 at 17:59.
    Nokia Asha applications [Price Point Policy] [Unlimited Updates] [Suggestions]: http://www.developer.nokia.com/Community/Discussion/showthread.php?240423-Nokia-Asha-applications-Price-Point-Policy-Unlimited-Updates-Suggestions

  4. #4
    Registered User
    Join Date
    Apr 2008
    Posts
    69

    Re: Multiselection List Query Dialog auto select the highlighted item on exit?

    Thank you Ashraf, you answer save my time.

Similar Threads

  1. Replies: 3
    Last Post: 2006-08-07, 13:26
  2. dynamic list query dialog
    By legm in forum Symbian
    Replies: 9
    Last Post: 2006-07-25, 07:35
  3. select the last item in the list programmatically?
    By advocatee in forum Symbian User Interface
    Replies: 1
    Last Post: 2003-12-02, 02:52
  4. List item selection
    By SanDan in forum Mobile Java General
    Replies: 2
    Last Post: 2003-05-06, 10:57
  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
  •  
×