If I dont select any item in a CAknEnumeratedTextPopupSettingItem list then the default value of the selected index is always 0 !! well there is a requirement that the passed index to CAknEnumeratedTextPopupSettingItem should be zero.
I get 0 if i leave the popup untouched if i touch and chosoe something i get right index otehr wise the index and the popup shon as selected dont match

Tint iEnumText =0; // is must otherwise it panics.

/*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);

I would like to have -1 if nothing is selected or

Is there a way to put a particular item as the first item in the popup list ?

-A