[fpc-pascal] class of - instance created is wrong

Graeme Geldenhuys graemeg.lists at gmail.com
Thu Mar 15 11:11:02 CET 2012


On 15 March 2012 11:36, Mattias Gaertner  wrote:
>
> Is the constructor virtual?


I owe you a beer!  :-)

The original constructor in TfpgCanvasBase was virtual, but some
descendant classes did a 'reintroduce' of the constructor which wasn't
virtual. Looking at the code now, the reintroduce isn't needed any
more and thus removed.

It works perfectly now, thanks!!  fpGUI developers can now easily
switch between X11, GDI and AggPas canvas's. :-D


-- 
Regards,
  - Graeme -


_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net



More information about the fpc-pascal mailing list