×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    69

    Enumerated text setting item

    CAknEnumeratedTextPopupSettingItem

    i am successfully create dynamic Enumerated values

    but it always show first item selected
    i want change to second or third item
    here is the code

    /*Enumerated text setting item*/
    CAknEnumeratedTextPopupSettingItem* item9 = new (ELeave) CAknEnumeratedTextPopupSettingItem(9, iEnumText);
    CleanupStack::PushL(item9);
    // The same resource id can be used for multiple enumerated text setting pages.
    item9->ConstructL(isNumberedStyle, 9, KName9, icons, R_ENUMERATEDTEXT_SETTING_PAGE, -1, 0, R_POPUP_SETTING_TEXTS);

    // Load texts dynamically.
    CArrayPtr<CAknEnumeratedText>* texts = item9->EnumeratedTextArray();
    texts->ResetAndDestroy();
    CAknEnumeratedText* enumText;
    // Text 1
    HBufC* text = KEnumText1().AllocLC();
    enumText = new (ELeave) CAknEnumeratedText(0, text);
    CleanupStack::Pop(text);
    CleanupStack::PushL(enumText);
    texts->AppendL(enumText);
    CleanupStack::Pop(enumText);
    // Text 2
    text = KEnumText2().AllocLC();
    enumText = new (ELeave) CAknEnumeratedText(1, text);
    CleanupStack::Pop(text);
    CleanupStack::PushL(enumText);
    texts->AppendL(enumText);
    CleanupStack::Pop(enumText);

    iItemList->SettingItemArray()->AppendL(item9);
    CleanupStack::Pop(item9);


    Regards
    Wael

  2. #2
    Regular Contributor
    Join Date
    Jul 2003
    Posts
    69

    Re: Enumerated text setting item

    i found solution
    iItemList->ListBox()->UpdateScrollBarsL();
    iItemList->DrawNow();

    Regards
    Wael

Similar Threads

  1. Replies: 4
    Last Post: 2009-02-17, 21:24
  2. Replies: 10
    Last Post: 2008-06-23, 11:28
  3. UI Problem: enumerated text setting item
    By hong.lam in forum Symbian
    Replies: 6
    Last Post: 2007-09-07, 12:27
  4. how to handle selected value from enumerated text setting item
    By hasanlacin in forum Symbian User Interface
    Replies: 2
    Last Post: 2005-07-20, 15:02
  5. Replies: 0
    Last Post: 2004-11-24, 18:49

Posting Permissions

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