Hi,

I am using CodeWarrior 9.2 and the version of POL supplied with that.  I have a simple 
class derived from CGadget that overrides the OnEnter() virtual method and the 
OnDraw() virtual method.  I attach my class to a gadget in my form when I receive a 
frmOpenEvent.

My problem is this:
My OnDraw override works as expected and gets called instead of CGadget's own call.  
However, the OnEnter() override does not.  Looking at the POL source, there seems to 
be a difference in the way the two methods are called (OnDraw is called through a 
pointer whereas OnEnter is called from within the class instance).  However, I can't 
see how this would legitamately lead to the situation I am experiencing.  I have 
double checked my function prototypes and they are identical (cut and paste goes a 
long way).  Has anyone else experienced this problem and is it something I've missed 
or is there some kind of compiler bug that is neglecting to add my call to the virtual 
table?

Any assistance would be great.  I currently have a workaround, but it seems a little 
overkill to workaround something that should work.

Kind Regards,
Jeff Yates
Pi Research

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to