Re: [Lazarus] OpenGL with Lazarus

2013-05-14 Thread Michael Schnell
What about SDL ? AFAIK, same can use Open GL (and other) graphical backends. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Get Lazarus version at runtime

2013-05-14 Thread Vincent Snijders
2013/5/13 Ludo Brands ludo.bra...@free.fr On 05/13/2013 04:08 PM, leledumbo wrote: http://lazarus-ccr.sourceforge.net/docs/lcl/lclversion/index.html To the author of the help page: {$IFDEF lcl_major0} should be {$if lcl_major0} {$IFDEF} works only with defines. Here we have constants.

Re: [Lazarus] OpenGL with Lazarus

2013-05-14 Thread Graeme Geldenhuys
On 2013-05-14 07:50, Michael Schnell wrote: AFAIK, same can use Open GL (and other) graphical backends. +1 SDL has excellent cross-platform support, and can use multiple low level graphical backends to suite each platform. It is under active development, and was/is used in many game

Re: [Lazarus] How to disable the assembler window on Linux?

2013-05-14 Thread Martin
On 11/05/2013 05:11, silvioprog wrote: procedure TForm1.Button1Click(Sender: TObject); var s: string; begin s := 'abc'; Break point here (F5) // line 1 ShowMessage(s); // line 2 end; and I use Step Over (F8), the cursor go to line 2, but the same code in Linux, go to GTK units. See:

Re: [Lazarus] How to disable the assembler window on Linux?

2013-05-14 Thread Martin
On 11/05/2013 05:11, silvioprog wrote: procedure TForm1.Button1Click(Sender: TObject); var s: string; begin s := 'abc'; Break point here (F5) // line 1 ShowMessage(s); // line 2 end; and I use Step Over (F8), the cursor go to line 2, but the same code in Linux, go to GTK units. See:

[Lazarus] TextHeight in Console App

2013-05-14 Thread Edilson Vieira
Hi folks! This is my second post. If this is not the correct list please let me know. I am trying to compile a Delphi project with Lazarus. The project is an Image Generation Program, a console program. The error ocurr when I call the method TextHeight of the Canvas property of TBitmap. The

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread leledumbo
'Project TextHeight raised exception External SIGSEGV in file '.\include\lclintf.inc' at line 184.' What's there? It's part of lcl, so look for the file in lcl folder. -- View this message in context:

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Edilson Vieira
2013/5/14 leledumbo leledumbo_c...@yahoo.co.id 'Project TextHeight raised exception External SIGSEGV in file '.\include\lclintf.inc' at line 184.' What's there? It's part of lcl, so look for the file in lcl folder. function RawImage_QueryDescription(AFlags: TRawImageQueryFlags; var ADesc:

Re: [Lazarus] OpenGL with Lazarus

2013-05-14 Thread Reimar Grabowski
On Tue, 14 May 2013 10:32:23 +0100 Graeme Geldenhuys gra...@geldenhuys.co.uk wrote: On 2013-05-14 07:50, Michael Schnell wrote: AFAIK, same can use Open GL (and other) graphical backends. +1 SDL has excellent cross-platform support, and can use multiple low level graphical backends

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Edilson Vieira
2013/5/14 Edilson Vieira vieira.edil...@gmail.com 2013/5/14 leledumbo leledumbo_c...@yahoo.co.id 'Project TextHeight raised exception External SIGSEGV in file '.\include\lclintf.inc' at line 184.' What's there? It's part of lcl, so look for the file in lcl folder. function

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Graeme Geldenhuys
On 2013-05-14 14:07, Edilson Vieira wrote: The project is an Image Generation Program, a console program. The error ocurr when I call the method TextHeight of the Canvas property of TBitmap. You do realize that if you pull in the 'Graphics' unit of LCL, you don't have a console app any more,

Re: [Lazarus] OpenGL with Lazarus

2013-05-14 Thread Graeme Geldenhuys
On 2013-05-14 15:19, Reimar Grabowski wrote: But you still have to learn pure, low level OpenGL to use it. Ah, you seem to be right. SDL has its own cross-platform 2D API, but for the OpenGL backend the calls are the OpenGL API. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Howard Page-Clark
On 14/05/2013 15:32, Graeme Geldenhuys wrote: On 2013-05-14 14:07, Edilson Vieira wrote: The project is an Image Generation Program, a console program. The error ocurr when I call the method TextHeight of the Canvas property of TBitmap. You do realize that if you pull in the 'Graphics' unit

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread leledumbo
OK, that means it tries to get something from current widgetset, which is nil for a console application. I guess LCLBase is the least thing you can use from LCL for a console app. You could follow Graeme's advice. -- View this message in context:

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Edilson Vieira
2013/5/14 Graeme Geldenhuys gra...@geldenhuys.co.uk On 2013-05-14 14:07, Edilson Vieira wrote: The project is an Image Generation Program, a console program. The error ocurr when I call the method TextHeight of the Canvas property of TBitmap. You do realize that if you pull in the

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Graeme Geldenhuys
On 2013-05-14 15:51, Edilson Vieira wrote: You mean use FPImage instead of Graphics? In this case what should I use instead of TBitmap (defined in Graphics unit) ? Yes, take a look at the code in fpc/packages/fcl-image/src/ and in more detail the fpimage, fpimgcanv units. You will

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Graeme Geldenhuys
On 2013-05-14 15:50, Howard Page-Clark wrote: Or create a Lazarus GUI app and implement Form1's OnCreate handler thus: The original poster wants to create a non-GUI application, so he can't use LCL. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Edilson Vieira
Tks Graeme. However, I did not find TFPImageCanvas. I am using Lazarus 1.0.8 and fpc 2.6.2, a version problem perhaps? Anyway, I think Howard's sugestion will be a less-effort solution to migrate the existing code. Thank you guys! Edilson. 2013/5/14 Graeme Geldenhuys gra...@geldenhuys.co.uk

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Graeme Geldenhuys
On 2013-05-14 18:44, Edilson Vieira wrote: However, I did not find TFPImageCanvas. I am using Lazarus 1.0.8 and fpc 2.6.2, a version problem perhaps? It comes standard with FPC since years ago. Simply add the 'fpimgcanv' unit to any uses clause, and it is ready to use. If you want to open the

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Graeme Geldenhuys
On 2013-05-14 18:44, Edilson Vieira wrote: However, I did not find TFPImageCanvas. This might help too. http://wiki.freepascal.org/fcl-image Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ --

Re: [Lazarus] TextHeight in Console App

2013-05-14 Thread Edilson Vieira
Ok. I think all I need is there with a little different aproach. I will try some samples before deciding what to do. Thanks again! 2013/5/14 Graeme Geldenhuys gra...@geldenhuys.co.uk On 2013-05-14 18:44, Edilson Vieira wrote: However, I did not find TFPImageCanvas. This might

[Lazarus] New bug with codetools files

2013-05-14 Thread Anthony Walter
Mattias, I filed a which I am pretty sure this bug is in your wheelhouse. I think it's being causes by codetools and some newer language enhancements. I took a look at fixing the problem myself and couldn't make any progress. here is a summary of what's going on. This bug curiously in not present

Re: [Lazarus] LCL + GTK2 + CustomControl : Help needed

2013-05-14 Thread dev . dliw
Hi, sorry to be so insistent, but I can't imagine noone has an idea :( No LCLGTK2 maintainer on this list? To put it in a nutshell: I need to get / create a handle via LCL or GTK2 directly, which is a gtkcontainer, with no bin.child attached... or - seeing that LCL creates a bigger hierarchy for

[Lazarus] ARMV7

2013-05-14 Thread Kjow
Hi all, I'm trying to build androidlcl test project with ARMV7 VFPV3, but there are problems. First of all, I'm using Lazarus 1.1 (svn trunk) and FPC 2.7.1 (svn trunk) and I can compile that project and build apk from Windows 8 pro well. My Samsung Galaxy Note 1 can execute androidlcl... but

Re: [Lazarus] New bug with codetools files

2013-05-14 Thread Anthony Walter
I saw you created a fix in revision 41199 and after some testing I reopened. I would seem the fix prevents codetools from working with anything in a package. Create a new application and you cannot ctrl + left click TForm. Double click a form and you get TDefaultComponentEditor error --

Re: [Lazarus] ARMV7

2013-05-14 Thread leledumbo
Isn't the error message clear enough? PPU Loading C:\Develop\fpc\2.7.x\units\arm-android\rtl\system.ppu Trying to use a unit which was compiled with a different FPU mode The compiler tries to load the system unit, but it's compiled with different FPU mode that the one you're targetting with.