Hello,

I've created dinamically a combo box in Series80 just as shown in the SDK, and I want to set a label or prompt as if created using resources,because if I add a CEikLabel control in front of it, the arrow indicating that this is a combo box doesn't shows.

The code is the following:

-----------------------------------------------
// create the language combo box
iComboLanguage = new (ELeave) CEikComboBox;
iComboLanguage->ConstructL(*this,KComboWidth,KComboTextLimit,KComboMaxArraySize);
//Create an array to hold the array items.
CDesCArray* itemArray=new(ELeave) CDesCArrayFlat(5);

//Add items to the array.
_LIT(KItem1,"English");
_LIT(KItem2,"French");
_LIT(KItem3,"Italian");
itemArray->AppendL(KItem1);
itemArray->AppendL(KItem2);
itemArray->AppendL(KItem3);

//Give the array to the Combo box.
iComboLanguage->SetArray(itemArray);
textWidth = iFont->MeasureText(_L("Language :"));
iComboLanguage->SetExtent(TPoint(textWidth + EComboLanguageXPos,ELabelLanguageYPos),iComboLanguage->MinimumSize());
//Set the number of items the user may add to the array.
iComboLanguage->SetMaxEditableUserItems(0);

iComboLanguage->PrepareForFocusGainL(); //Must be since system won't provide.
iComboLanguage->SetFocus(ETrue);

//Set the initial Combo box text.
_LIT(KText,"English");
iComboLanguage->SetTextL(&KText);
--------------------------------------------------

Also how can I set the combobox edit control read only without the cursor.
When I focus the combo box, the focus to be on the label/prompt text , not on the edit control of the combobox.