listbox in dialog
I'm trying to display a settings listbox in a dialog. I derived CMyDialog from CAknDialog and in the class ConstructL I did the following:
iListBox = new (ELeave) CAknSettingItemList;
however when I execute the dialog, the list does not show up.
I thought I maybe should move the last three lines to another function that is called after the dialog is displayed. But which one?
Or could it be that I'm missing sthg here ?
any ideas would be greatly apreciated
You are missing an ActivateL before the DrawNow(). Look at the Setting list example in the SDK help.
actually, I did try that but it didn't make a difference
Did you put iListbox in the ComponentControl() function and then increment the integer you are returning in your CountComponentControls() function??
These two function have to be impelemented if you are writing a control with controls nested within it.
I know its a while since you posted this but it just caught my eye
Did you found solution?
Did you found solution? I have the same problem now. Can you help?
I am actually in the process of doing an article to be posted on NewLC on exactly this topic.
If you would be prepared to exchange comments and proof the article (i.e. checking the code etc) I would be more than happy to trade.
What topic exactly?
I believe I've already seen somewhere a very good tutorial how to make Listboxes work...
but not settings list boxes which require a different approach.
There are some notes on this newsgroup on doing it as well
Oh yeah. Some tutorial about settings listboxes is always useful..:-)
Please, let us know when you will publish the article...