Read-only archive of the All About Symbian forum (2001–2013) · About this archive

choice list

2 replies · 3,951 views · Started 17 May 2004

Hi! I have a question about using choice list, CEikChoiceList to be exact. Here's how I declared it:

iList = new (ELeave) CEikChoiceList;
iList->SetContainerWindowL(*this);
iList->SetObserver(this);
iList->ConstructL(this,EEikChlistIncrementalMatching,9);
iList->SetExtent(TPoint(x,y),TSize(width,height));
iList->SetArrayL(iContent);

It compiles. When I click on it, the choices drop down. But after that, the other controls need redrawing. So, I thought I can put those statements in HandleControlEventL, but (and here's the problem) apparently, events on CEikChoiceList does not go to HandleControlEventL. All my other controls are handled by that function, so I'm stumped as to how to handle my choice list. I tried using HandlePointerEventL, it can detect pointers on the choice list, but that's all, the choices won't drop as opposed to not using this function. Another disadvantage of using HandlePointerEventL is my other controls won't work. So I'd like not to use HandlePointerEventL, but how can I handle events on CEikChoiceList?

Thank you in advance.

Hi gray matter,

i'm new to symbian dev and don't know to solve your problem.....but.....

can you tell me how you created the Array you use for your ChoiceList??!!

thx a lot....

PS: your are on NewLC forum too, right?

u can create choicelist array like this :

CPtrCArray* iArray = new CPtrCArray(1);
iArray->AppendL(_L("Vijay"😉);

cheers
CodePupil