Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User nishithmahajan's Avatar
    Join Date
    Jul 2010
    Posts
    17
    HI All,
    I am facing an issue with multiple selection in CAknListQueryDialog . The list displays fine but whenever I touch any item in the dialog it returns itself with an empty index array. Only the first item is selected on touching it. Only way of making it work is to hold the item you wish to select and scroll the list a little bit and again select the item but this only makes a single section there is no way I can use it for multiple selection. Here is the code used.
    The Resource file
    RESOURCE DIALOG r_aknexquery_multi_selection_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 = AKNEXQUERY_LISTBOX_HEIGHT;
    width = AKNEXQUERY_LISTBOX_WIDTH;
    array_id = r_aknexquery_multi_selection_query_list_item;
    };
    heading = STRING_r_aknexquery_selection_title;
    };
    }
    };
    }

    The instantiation and execution of the dialog
    indexArray = new ( ELeave ) CArrayFixFlat<TInt>( 6 );
    CleanupStack::PushL( indexArray );
    dlg = new ( ELeave ) CAknListQueryDialog( indexArray );
    TInt answer( dlg->ExecuteLD( R_AKNEXQUERY_MULTI_SELECTION_LIST_QUERY) );

    Any idea how can I solve this issue. I am also facing the same error in S60 example code present at \S60_5th_Edition_SDK_v1.0\S60CppExamples\Query
    Thanks
    Nishith

  2. #2
    Registered User nishithmahajan's Avatar
    Join Date
    Jul 2010
    Posts
    17
    Finally got the solution.
    Nokia had released 2 new flags for enabling listbox for touch events. One of them is EAknListBoxStylusMultiselectionList.
    If we use this flag then everything works fine. SO in Rss file replace flags = EAknListBoxMultiselectionList; with flags = EAknListBoxStylusMultiselectionList to fix the issue.
    Thanks
    Nishith

Similar Threads

  1. S60 All in One (5th ed.) Installation
    By qbalsdon in forum Mobile Java Tools & SDKs
    Replies: 6
    Last Post: 2010-04-30, 06:30
  2. Porting S60 3rd Ed application to 5th Ed
    By Asif Nazir in forum Symbian User Interface
    Replies: 4
    Last Post: 2009-05-08, 12:37
  3. S60 5th ed.: accessibility of S60 Platform Services
    By jack44 in forum Symbian Web Runtime
    Replies: 1
    Last Post: 2008-12-08, 14:32
  4. S60 3rd ed. a DLL related project building failing
    By mehdi_cs in forum Symbian C++
    Replies: 0
    Last Post: 2008-04-27, 13:52

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved