how to create customize listbox

Login to reply to this topic.
Tue, 2007-11-13 11:41
Joined: 2007-07-24
Forum posts: 55

Hi friends,
Here i want to create a customized listbox.so anyone please give me idea how can i
create this customized listbox.
Regards
mitu


Tue, 2007-11-13 12:43
Joined: 2005-11-20
Forum posts: 1093
Re: how to create customize listbox

Did you already check this?
http://www.newlc.com/Subclassing-List-Box-in-Symbian.html

Easy to find by just typing "listbox" into the search box in the upper right corner...


René Brunner

Tue, 2007-11-13 13:52
Joined: 2007-07-24
Forum posts: 55
Re: how to create customize listbox

HI rbrunner,
Thanks for quick reply.now i will check it out.
Regards
mitu

Wed, 2007-11-14 08:30
Joined: 2007-07-24
Forum posts: 55
Re: how to create customize listbox

Hi friend,
I have tried by using given code for customized listbox from the link which u have given.But here it gets KERN EXEC 3 ERROR .so where i am wrong? .
Regards
mitu

Wed, 2007-11-14 08:46
Joined: 2005-11-20
Forum posts: 1093
Re: how to create customize listbox

How will anybody know without further information?

Come on, seriously, fire up a debugger and check where the error happens!

If you don't have a debugger, or don't know how to debug, let me tell you that serious Symbian programming is more or less impossible without a debugger, and it would be high time for you to get one and/or learn how to debug.


René Brunner

Wed, 2007-11-14 12:26
Joined: 2007-07-24
Forum posts: 55
Re: how to create customize listbox

HI rene,
Thanks for ur resonse.In fact, i am not a newbie in symbian.But some abstract things make more complicated.so that
confusing happens more.i have debugged seriously but i couldn't able trace exact line.
After following line in my appui class it gets closed and shown KERN EXEC 3 ERROR.For this i thought it happens only due to
stack or heap memory overflow.so that i also reset stack memory. still then it couldn't get any other result .

void CMyListBoxAppUi::ConstructL()
{
BaseConstructL();

iAppView = new (ELeave) CMyListBoxAppView();
iAppView->ConstructL(ClientRect());
AddToStackL(iAppView);
AddToStackL(iAppView->ListBox());
} //after this it gets closed.
Regards
mitu

Wed, 2007-11-14 13:21
Joined: 2005-11-20
Forum posts: 1093
Re: how to create customize listbox

I saw that this code snippet really is in the original sample source.

It looks strange to me. I never added a listbox to the input stack so far, without any problems that I know of. Maybe in UIQ (it's an UIQ example, after all), this is not necessary, but does no harm either, but somehow in S60 it crashes.

Try not adding the listbox to the input stack.


René Brunner

  • Login to reply to this topic.