how to delete controls from scrollable container

Login to reply to this topic.
Fri, 2008-05-09 11:53
Joined: 2008-05-09
Forum posts: 1

I have a scrollable container which contains a number of generic building block. I am creating these generic building block using the example provided by UIQ. I am able to delete a single generic building block in the scrollable container and the block is not shown in the UI.
I used the following code to delete the control.

iContainer->BeginUpdateLC();
block = LocateControlByUniqueHandle (iBlockUniqueID);
iContainer->DeleteControl(*block);
iContainer->EndUpdateL();

I am facing problem when I add more than one building blocks and try to delete one of them. I use the above code and it gives me KERN EXEC-3 error message. I am doing the above operation in offerkeyeventl method and it panics after offereventL method.

Can someone help what can be the problem.

Thanks in advance
Rahul

  • Login to reply to this topic.