I am trying to create a custom control in a Series 60 form. This causes a Panic EIKON-FORM 0.
I have derived from CAknForm and overridden CreateCustomContol.
If I derive instead from CAknDialog and create a dialog instead of a form, then my code runs OK, no Panic. However, the appearance of the dialog is far inferior to that of the form, so I want to get it working as a form.
Is there a limitation that I cannot implement a custom control in a form, or is there something extra that I need to do?
The reason for creating a custom control is that I want to derive from CEikSecretEditor to try to fix a slight problem with that control: when a non-default theme is in use on a 6600 device, the password field within the form appears as a wallpaper-coloured area when it does not have focus - it should be plain background colour to match the background of the form itself.