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

2012-03-18 Thread Zaher Dirkey
On Thu, Mar 15, 2012 at 12:52 PM, Graeme Geldenhuys graemeg.li...@gmail.com wrote: On 15 March 2012 12:31, Leonardo M. Ramé wrote: Hi Graeme, this is completely off topic. Does AggPas works in 64bits Linux? I remember it didn't compile last year. I does now! ;-) I haven't publish

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

2012-03-18 Thread Graeme Geldenhuys
On 18 March 2012 08:03, Zaher Dirkey wrote: Would u push it to new repository (under ur account). I'm planning to publish it to the fpGUI repository today. And why there is many of AggPas, what happened to the original one? The original AggPas author only released AggPas as a zip / tarball

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

2012-03-18 Thread Zaher Dirkey
On Sun, Mar 18, 2012 at 9:22 AM, Graeme Geldenhuys graemeg.li...@gmail.comwrote: I'm planning to publish it to the fpGUI repository today. No, I meant not under fpGUI, thanks. Best Regards Zaher Dirkey ___ fpc-pascal maillist -

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

2012-03-18 Thread Graeme Geldenhuys
On 18 March 2012 09:51, Zaher Dirkey wrote: But that mean you force us to use fpGUI :P No, the AggPas code is still kept in a separate folder. The only mixing between fpGUI AppPas is localised to a single unit, and that unit is not needed for any of AggPas specific code or demos. --

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

2012-03-15 Thread Graeme Geldenhuys
Hi, I've used the Class Of language feature a lot in the past. eg: tiOPF uses it a lot, I use it to generate various reports in our company projects etc. So I tried to implement a lazy mans factory method in my project, so it can generate a class instance based on what the developer chooses. I

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

2012-03-15 Thread Mattias Gaertner
Graeme Geldenhuys graemeg.li...@gmail.com hat am 15. März 2012 um 10:07 geschrieben: [...] TfpgCanvas | +-- TfpgX11Canvas | +-- TfpgCanvasBase TAgg2D | +-- TfpgCanvasBase [...] DefaultCanvasClass: TfpgCanvasBaseClass = nil; [...] function

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

2012-03-15 Thread Graeme Geldenhuys
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

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

2012-03-15 Thread Leonardo M . Ramé
From: Graeme Geldenhuys graemeg.li...@gmail.com To: FPC-Pascal users discussions fpc-pascal@lists.freepascal.org Sent: Thursday, March 15, 2012 7:11 AM Subject: Re: [fpc-pascal] class of - instance created is wrong On 15 March 2012 11:36, Mattias Gaertner

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

2012-03-15 Thread Graeme Geldenhuys
On 15 March 2012 12:31, Leonardo M. Ramé wrote: Hi Graeme, this is completely off topic. Does AggPas works in 64bits Linux? I remember it didn't compile last year. I does now! ;-) I haven't publish my copy of AggPas yet (which contains the 64-bit fixes). I'll probably push those changes