×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Sep 2004
    Posts
    101

    any other solution

    Hi all,
    i am using CAknSettingItemList for 2 setting items(1 for Name and 2 is for Occupation),for this i have written the code

    void CMyTextEditorAppView::MyLoadListL()
    {
    TBool isNumberedStyle = iItemList->IsNumberedStyle();
    CArrayPtr<CGulIcon>* icons = iItemList->ListBox()->ItemDrawer()->FormattedCellData()->IconArray();

    /*setting item for Name*/
    CAknTextSettingItem* item = new (ELeave) CAknTextSettingItem(1,iText);
    CleanupStack::PushL(item);
    item->SetEmptyItemTextL( KEmptyText );

    // The same resource id can be used for multiple text setting pages.
    item->ConstructL(isNumberedStyle,1, KName, icons, R_TEXT_SETTING_PAGE,-1);
    iItemList->SettingItemArray()->AppendL(item);
    CleanupStack::Pop(item);

    /*setting item for Occupation*/
    CAknTextSettingItem* item1 = new (ELeave) CAknTextSettingItem(1,iText);
    CleanupStack::PushL(item1);
    item1->SetEmptyItemTextL( KEmptyText );


    item1->ConstructL(isNumberedStyle,1, KOccupation, icons, R_TEXT_SETTING_PAGE,-1);
    iItemList->SettingItemArray()->AppendL(item1);
    CleanupStack::Pop(item1);


    iItemList->SettingItemArray()->RecalculateVisibleIndicesL();

    iItemList->HandleChangeInItemArrayOrVisibilityL();

    }

    this is working fine but i want to know is this right way?? i mean i m using same code twice...

  2. #2
    Registered User
    Join Date
    Apr 2004
    Posts
    18

    Re: any other solution

    Hi,

    If you have two controls(for name and occupation), you need to construct two controls, as you are doing now.

    Regards
    Pavan
    Pavan Nandan

Similar Threads

  1. J2ME: Problem in Nokia Solution for a software problem
    By mte01 in forum Mobile Java Tools & SDKs
    Replies: 4
    Last Post: 2011-06-08, 05:52
  2. Replies: 0
    Last Post: 2007-05-16, 11:11
  3. Need help for testing nokia solution
    By exosystem in forum General Development Questions
    Replies: 0
    Last Post: 2003-08-21, 17:27
  4. Replies: 0
    Last Post: 2003-05-07, 17:06
  5. MMS Picture Store Solution
    By compilot in forum General Messaging
    Replies: 1
    Last Post: 2002-07-11, 16:40

Posting Permissions

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