How to make custom control invisible??

Login to reply to this topic.
Thu, 2008-07-03 10:31
Joined: 2008-01-29
Forum posts: 18

Hi,
I have created one custom control in S60 which i want to make invisible but problem is that when i call MakeVisible (EFalse) its giving KERNEXEC 3 exception. Can any one tell me how can i do this? thanks in advance.


Thu, 2008-07-03 11:11
Joined: 2005-11-20
Forum posts: 1156
Re: How to make custom control invisible??

I am not aware of special issues connected with making controls invisible that you might trigger. I think the problem could still be almost anything.

What does the debugger tell? What's the call chain at the moment of the crash?


René Brunner

Thu, 2008-07-03 16:58
Joined: 2004-11-29
Forum posts: 1156
Re: How to make custom control invisible??

Are you returning sensible values from your ComponentControl() and CountComponentControls() functions?
If you return "NULL" from ComponentControl() for any index, I'd expect you to get Kern-Exec 3 from calling MakeVisible.

Wed, 2008-07-09 08:31
Joined: 2007-01-17
Forum posts: 96
Re: How to make custom control invisible??

Yes please ensure that you return the custom control appropriately in the method ComponentControl() and number of controls in CountComponentControls() method.

Also you can try SetExtent(TPoint(1000,1000),TSize(0,0)) ; if MakeVisisble(EFalse) does not do the trick


Shashi Kiran G M

  • Login to reply to this topic.