×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    47

    CAknListQueryDialog question

    Hi, all.

    I'm using CAknListQueryDialog. You can see the way I do that below. I know that RunLD delete dialog on dialog close. Does it mean that arraylist, on which dialog basised will be deleted to? If yes, how can I can item text that user had selected?

    Code:
    CDesCArrayFlat *list = iStorage->GetList();
    TInt choosedIndex;
    CAknListQueryDialog *dialog = new (ELeave) CAknListQueryDialog(&choosedIndex);
    dialog->PrepareLC(R_LISTBOX_QUERY_DIALOG);
    dialog->SetItemTextArray(list);
    dialog->RunLD();
    
    // look like the list isn't valid pointer at this point.
    // list->Count() return trash like -14453;
    Last edited by sani_ok; 2012-10-05 at 10:42.

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

    Re: CAknListQueryDialog question

    note that you could always use the void SetOwnershipType (TListBoxModelItemArrayOwnership aOwnershipType) to define teh ownership issues..

Similar Threads

  1. Help!help! About CAknListQueryDialog....
    By bingxuewangzi427 in forum Symbian
    Replies: 6
    Last Post: 2009-09-23, 07:31
  2. CAknListqueryDialog...
    By legm in forum Symbian User Interface
    Replies: 2
    Last Post: 2006-08-03, 09:47
  3. help me about CAknListQueryDialog
    By blackdaisy in forum Symbian User Interface
    Replies: 3
    Last Post: 2006-07-24, 12:16
  4. Multiselection - CAknListQueryDialog question
    By rshtykh in forum Symbian User Interface
    Replies: 0
    Last Post: 2003-06-03, 03:37
  5. How to use CAknListQueryDialog?
    By bcchong in forum Symbian User Interface
    Replies: 3
    Last Post: 2003-03-04, 14:04

Posting Permissions

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