Re: [fpc-pascal] class of - instance created is wrong
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. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] class of - instance created is wrong
On Sun, Mar 18, 2012 at 9:22 AM, Graeme Geldenhuys wrote: > 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 - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] class of - instance created is wrong
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 archive. There never was any public source code repository. The original author also moved on, and created a commercial venture from AggPas, now called CrossGL (Cross platform Graphics Library), so he doesn't work on the original AggPas version any more. Also, fpGUI can now use AggPas as the graphics library (instead of XLib or GDI) - see the screenshot in the fpgui.development newsgroup. Once fully tested, it will become the default graphics library for fpGUI, so a copy of AggPas must be included with fpGUI to compile. As for Lazarus including a copy of AggPas - I have no idea what was the plans behind that. They will never use AggPas as a graphics library for LCL, because it is not "native". Lazarus's AggPas package is also not a default installed package in Lazarus IDE as far as I know. So it seems the thinking was to supply an optional and more powerful Canvas class, compared to the default LCL Canvas, for those developers that need it in specialised projects. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] class of - instance created is wrong
On Thu, Mar 15, 2012 at 12:52 PM, Graeme Geldenhuys 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 my copy of AggPas yet (which contains the 64-bit > fixes). I'll probably push those changes to the fpGUI repository later > today or tomorrow. > > Would u push it to new repository (under ur account). I'll also supply some of the vital patches to the Lazarus community, > so they can fix their AggPas copy. > > And why there is many of AggPas, what happened to the original one? Best Regards Zaher Dirkey ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] class of - instance created is wrong
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 to the fpGUI repository later today or tomorrow. I'll also supply some of the vital patches to the Lazarus community, so they can fix their AggPas copy. -- Regards, - Graeme - ___ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] class of - instance created is wrong
> > From: Graeme Geldenhuys >To: FPC-Pascal users discussions >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 wrote: >> >> Is the constructor virtual? > > >It works perfectly now, thanks!! fpGUI developers can now easily >switch between X11, GDI and AggPas canvas's. :-D > Hi Graeme, this is completely off topic. Does AggPas works in 64bits Linux? I remember it didn't compile last year. Regards, Leonardo M. Ramé http://leonardorame.blogspot.com ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] class of - instance created is wrong
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 ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] class of - instance created is wrong
Graeme Geldenhuys hat am 15. März 2012 um 10:07 geschrieben: >[...] > TfpgCanvas >| >+-- TfpgX11Canvas > | > +-- TfpgCanvasBase > > > TAgg2D >| >+-- TfpgCanvasBase >[...] > DefaultCanvasClass: TfpgCanvasBaseClass = nil; > [...] > function TfpgWindow.CreateCanvas: TfpgCanvasBase; > begin > writeln('>> TfpgWindow.CreateCanvas'); > writeln(' DefaultCanvasClass = ' + DefaultCanvasClass.ClassName); > // result := TAgg2D.Create(self); > // result := TfpgCanvas.Create(self); > Result := DefaultCanvasClass.Create(self); > writeln('<< TfpgWindow.CreateCanvas'); > end; > [...] > creating... TfpgX11Canvas > creating... TfpgCanvasBase > > NOTE the missing TfpgCanvas. Needless to say my program crashes instantly. >[...] > Can anybody see what I am doing wrong? Is the constructor virtual? > I've tested with FPC 2.6.0, 2.6.1 and 2.7.1 under 64-bit Linux. All compilers give the same > results. >[...] Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal