×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Mar 2004
    Posts
    21

    CAknQueryValueText & CAknPopupSettingPage

    I have the following class:

    class MySettingItem: public CAknEnumeratedTextPopupSettingItem
    {
    public:
    ...

    void EditItemL(TBool aCalledFromMenu)
    {
    CAknQueryValueText* queryValuePtr = CAknQueryValueText::NewLC ();
    // probably some more settings are needed on queryValuePtr ... please tell me what should I do here ...

    CAknPopupSettingPage* theSettingPage = new (ELeave) CAknPopupSettingPage(R_SETTINGLIST_OPTION_LIST_PAGE, *queryValuePtr);
    CleanupStack::PushL(theSettingPage);
    theSettingPage->ConstructL(); // crash ... USER 0 (because of queryValuePtr) ...

    .....

    this->SetSettingPage(theSettingPage);

    theSettingPage->ExecuteLD();

    ...
    };

    ...
    };

    The problem appears when I try to define the EditItemL and create manually the setting page: I have a crash when I call ContructL on theSettingPage.

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,166
    In popup list example they seems to set the array before using the class, so maybe you want to have a look of that example and copy the idea from there.

    yucca

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    13
    hi,
    i see this post is too old , but i have just same problem.

    i am trying to reimplement EditItemL function but i couldn't success.

    i looked up the example but couldn't figure out anything.

    thanks for any help.

Posting Permissions

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