Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Michael Schnell
On 09/29/2013 03:24 PM, Patrick wrote: Could anyone point me to resources on how to build GUI applications without Lazarus? If you mean the GUI library Lazarus offers there are alternatives that have been pointed out. If you mean Lazarus the IDE, you always can create a GUI using the Lazarus

Re: [fpc-pascal] Status of UTF8

2013-09-29 Thread Michael Schnell
On 09/28/2013 02:51 PM, Jonas Maebe wrote: . You can read your data into a RawByteString and then call SetCodePage(rawbytestr,codepagenr,false) to set its code page to whatever the code page of the data in that string is (without attempting to convert the data, which is what the last "false" p

Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Michal Wallace
On Sep 29, 2013 8:24 AM, "Patrick" wrote: > I don't really like IDEs. I used gvim and I suppose it could almost be called an IDE as well but I mean I would rather use the shellr then clicking on a build button. For what its worth, I use free pascal practically every day, but rarely open Lazarus.

Re: [fpc-pascal] class inheritance and type incompatibility

2013-09-29 Thread Sven Barth
Am 30.09.2013 04:10 schrieb "Xiangrong Fang" : > > 2013/9/30 Sven Barth >> >> >>> However, this does not work, because it seems that I cannot make any >>> generic method virtual! In TIntTree, I have to write: >>> >>> function TIntTree.DoClone: TIntTree; >>> >>> As it is not possible to write TTre

Re: [fpc-pascal] class inheritance and type incompatibility

2013-09-29 Thread Xiangrong Fang
2013/9/30 Sven Barth > > However, this does not work, because it seems that I cannot make any >> generic method virtual! In TIntTree, I have to write: >> >> function TIntTree.DoClone: TIntTree; >> >> As it is not possible to write TTree outside of the generic definition. >> > > This should do it

[fpc-pascal] Re: GUI confusion

2013-09-29 Thread leledumbo
> I tried Lazarus but it did not seem to be creating GTK code or QT, it was just some sort of weirdo Lazarus only stuff and then in tandem with the QT binding statement I mentioned earlier http://wiki.freepascal.org/Overview_of_Free_Pascal_and_Lazarus#Lazarus_Architecture > it wasn't even obvi

Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Patrick
There are alternatives, but first a distinction needs to me made. When you say "Lazarus", do you mean simply the IDE, or do you mean the LCL (Lazarus Component Library)? >From your earlier remard about IDE's I assume you simply don't like IDE, but you might not mind building LCL-based applicati

Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Graeme Geldenhuys
On 29/09/13 14:24, Patrick wrote: > Could anyone point > me to resources on how to build GUI applications without Lazarus? There are alternatives, but first a distinction needs to me made. When you say "Lazarus", do you mean simply the IDE, or do you mean the LCL (Lazarus Component Library)? >F

Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Sven Barth
On 29.09.2013 20:54, Patrick wrote: I actually tried to get started with FPC back In January. I felt that the language was too tied to Lazarus and that I didn't want to use an IDE so I gave up. FPC is definitely independant of Lazarus, but Lazarus on the one hand simplifies development signifi

Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Patrick
Thanks again to Reinier and Sven I just bought Getting Started with Lazarus IDE. I actually tried to get started with FPC back In January. I felt that the language was too tied to Lazarus and that I didn't want to use an IDE so I gave up. I will report back when I am a little further along t

Re: [fpc-pascal] SSE instructions

2013-09-29 Thread Florian Klämpfl
Am 27.09.2013 23:48, schrieb August Oktobar: > Are there any plans to add support for SSE intrinsic instructions, > similar to MMX? Planned is a lot, when it happens is a another question. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http

Re: [fpc-pascal] GUI confusion

2013-09-29 Thread Sven Barth
On 29.09.2013 15:24, Patrick wrote: Hi Everyone I really like the pascal code I have looked at and I am very excited about FPC. I hope this email won't upset anyone, it is a bit negative. I don't really like IDEs. I used gvim and I suppose it could almost be called an IDE as well but I mean I w

Re: [fpc-pascal] class inheritance and type incompatibility

2013-09-29 Thread Sven Barth
On 29.09.2013 11:47, Xiangrong Fang wrote: 2013/9/29 Sven Barth mailto:pascaldra...@googlemail.com>> I would suggest you to add an additional protected virtual method to TTree<> which is called from TTree<>.Clone and you override that in your descendant classes. Could ​ you please

[fpc-pascal] Re: GUI confusion

2013-09-29 Thread Reinier Olislagers
On 29/09/2013 15:24, Patrick wrote: > I am trying to learn what Lazarus is all about but I am still clueless. > > There are screen shots of it being used to develop GTK and QT > applications but I have also read that GTK 2 is new and buggy and then > there is this line: > Can I build GTK 2 (or 3)

[fpc-pascal] GUI confusion

2013-09-29 Thread Patrick
Hi Everyone I really like the pascal code I have looked at and I am very excited about FPC. I hope this email won't upset anyone, it is a bit negative. I don't really like IDEs. I used gvim and I suppose it could almost be called an IDE as well but I mean I would rather use the shellr then c

Re: [fpc-pascal] class inheritance and type incompatibility

2013-09-29 Thread Xiangrong Fang
2013/9/29 Sven Barth > > I would suggest you to add an additional protected virtual method to > TTree<> which is called from TTree<>.Clone and you override that in your > descendant classes. > Could ​ you please give an example how to do this? I tried the following: === code start === function

Re: [fpc-pascal] class inheritance and type incompatibility

2013-09-29 Thread Sven Barth
On 29.09.2013 05:49, Xiangrong Fang wrote: 2013/9/28 Sven Barth mailto:pascaldra...@googlemail.com>> On second sight your solution is not correct, because you are using Clone inside your parent class which would not use the (non-virtual) Clone you created. I've now played around

Re: [fpc-pascal] class inheritance and type incompatibility

2013-09-29 Thread Sven Barth
On 29.09.2013 04:47, Xiangrong Fang wrote: 2013/9/29 Sven Barth mailto:pascaldra...@googlemail.com>> If you want to override the virtual Clone method of TTree in TIntTree you need to use the same result type + override or otherwise you gain nothing, because the compiler will not con

Re: [fpc-pascal] generic class helper and class references

2013-09-29 Thread Sven Barth
On 29.09.2013 05:30, Xiangrong Fang wrote: type generic TTree = class ... ... end; TTreeType = class of TTree; This is illegal code and compiled by pre-2.7.1 FPC only because of bugs in the generic implementation. "TTree" is not a legal type outside of the generic's declaration