Re: [Lazarus] TextHeight in Console App

2013-05-17 Thread Mattias Gaertner
On Thu, 16 May 2013 05:54:50 -0300 Flávio Etrusco flavio.etru...@gmail.com wrote: [...] Is it a design decision that NoGUI does not do much more than satisfy some open externals when linking a Lazarus based project or is it just lack of manpower? Lack of manpower. Mattias --

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Michael Schnell
On 05/15/2013 05:40 PM, Graeme Geldenhuys wrote: The NoGUI widgetset is a terrible idea (work-around), and should be avoided if possible. You are right, but IMHO this is because it is not complete enough. Unfortunately noone knowledgeable enough seems to have the need to do decent Object

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Michael Schnell
On 05/15/2013 04:28 PM, Anton Kavalenka wrote: Al I wrong the NoGUI widgetset is intended for such tasks - CGI-like/console graphics processing? NoGUI does not do much more than satisfy some open externals when linking a Lazarus based project. -Michael --

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Flávio Etrusco
On Thu, May 16, 2013 at 4:33 AM, Michael Schnell mschn...@lumino.de wrote: On 05/15/2013 05:40 PM, Graeme Geldenhuys wrote: The NoGUI widgetset is a terrible idea (work-around), and should be avoided if possible. You are right, but IMHO this is because it is not complete enough.

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Hans-Peter Diettrich
Flávio Etrusco schrieb: Is it a design decision that NoGUI does not do much more than satisfy some open externals when linking a Lazarus based project or is it just lack of manpower? AFAIR NoGui was invented for writing (Windows) services, which have to process messages, but do not provide

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Michael Schnell
On 05/16/2013 10:54 AM, Flávio Etrusco wrote: IMHO YHO makes sense ;-) Is it a design decision that NoGUI does not do much more than satisfy some open externals when linking a Lazarus based project or is it just lack of manpower? In fact I once invested the better part of two weeks in trying to

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Michael Schnell
On 05/16/2013 12:40 PM, Hans-Peter Diettrich wrote: AFAIR NoGui was invented for writing (Windows) services, which have to process messages, but do not provide any GUI. Really a bad idea. I would like to use TTimer and TThreads in a service, and of course I would like to do such stuff for

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Michael Van Canneyt
On Thu, 16 May 2013, Hans-Peter Diettrich wrote: Flávio Etrusco schrieb: Is it a design decision that NoGUI does not do much more than satisfy some open externals when linking a Lazarus based project or is it just lack of manpower? AFAIR NoGui was invented for writing (Windows) services,

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Vincent Snijders
2013/5/16 Michael Van Canneyt mich...@freepascal.org The reason for noGUI is to allow applications that somehow use one of the basic LCL units (graphics, with TFont and Canvas support) to compile. In what unit was mrOk defined? That was the identifier needed... Vincent --

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Michael Van Canneyt
On Thu, 16 May 2013, Vincent Snijders wrote: 2013/5/16 Michael Van Canneyt mich...@freepascal.org The reason for noGUI is to allow applications that somehow use one of the basic LCL units (graphics, with TFont and Canvas support) to compile.   In what unit was mrOk defined? That

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Juha Manninen
On 5/16/13, Michael Van Canneyt mich...@freepascal.org wrote: In what unit was mrOk defined? That was the identifier needed... I think that is controls ? If this is the whole reason for noGUI, then an easier solution would have been to define all modalresults in a separate unit and make an

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Vincent Snijders
2013/5/16 Juha Manninen juha.mannine...@gmail.com mrOk is only used by GUI dialogs. By definition it is useful only with GUI. Where is the GUI dialog in for example TFileDescPascalUnit.CheckOwner? Vincent -- ___ Lazarus mailing list

Re: [Lazarus] TextHeight in Console App

2013-05-16 Thread Juha Manninen
On 5/16/13, Vincent Snijders vincent.snijd...@gmail.com wrote: mrOk is only used by GUI dialogs. By definition it is useful only with GUI. Where is the GUI dialog in for example TFileDescPascalUnit.CheckOwner? Ok, I didn't notice that one. Either it should use some other type or then mrOk

Re: [Lazarus] TextHeight in Console App

2013-05-15 Thread Michael Schnell
On 05/14/2013 04:50 PM, Howard Page-Clark wrote: Or create a Lazarus GUI app and implement Form1's OnCreate handler thus: Not all Targets an application might be intended to run on do provide a (supported) GUI API. -Michael -- ___ Lazarus mailing

Re: [Lazarus] TextHeight in Console App

2013-05-15 Thread Edilson Vieira
2013/5/15 Michael Schnell mschn...@lumino.de On 05/14/2013 04:50 PM, Howard Page-Clark wrote: Or create a Lazarus GUI app and implement Form1's OnCreate handler thus: Not all Targets an application might be intended to run on do provide a (supported) GUI API. In the case I described it

Re: [Lazarus] TextHeight in Console App

2013-05-15 Thread Flávio Etrusco
On Wed, May 15, 2013 at 11:02 AM, Edilson Vieira vieira.edil...@gmail.com wrote: 2013/5/15 Michael Schnell mschn...@lumino.de On 05/14/2013 04:50 PM, Howard Page-Clark wrote: Or create a Lazarus GUI app and implement Form1's OnCreate handler thus: Not all Targets an application might be

Re: [Lazarus] TextHeight in Console App

2013-05-15 Thread Anton Kavalenka
On 14.05.2013 16:07, Edilson Vieira wrote: 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

Re: [Lazarus] TextHeight in Console App

2013-05-15 Thread Edilson Vieira
2013/5/15 Flávio Etrusco flavio.etru...@gmail.com On Wed, May 15, 2013 at 11:02 AM, Edilson Vieira vieira.edil...@gmail.com wrote: 2013/5/15 Michael Schnell mschn...@lumino.de On 05/14/2013 04:50 PM, Howard Page-Clark wrote: Or create a Lazarus GUI app and implement Form1's OnCreate

Re: [Lazarus] TextHeight in Console App

2013-05-15 Thread Graeme Geldenhuys
On 2013-05-15 15:02, Edilson Vieira wrote: I really do not understand why I can not make a console App that uses the Graphics unit because in Delphi there is no problem on that. In Windows it is not really noticeable, because ALL Windows installations have access to a GUI. You simply don't get

Re: [Lazarus] TextHeight in Console App

2013-05-15 Thread Graeme Geldenhuys
On 2013-05-15 15:28, Anton Kavalenka wrote: Al I wrong the NoGUI widgetset is intended for such tasks - CGI-like/console graphics processing? The NoGUI widgetset is a terrible idea (work-around), and should be avoided if possible. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform

Re: [Lazarus] TextHeight in Console App

2013-05-15 Thread Edilson Vieira
2013/5/15 Graeme Geldenhuys gra...@geldenhuys.co.uk On 2013-05-15 15:02, Edilson Vieira wrote: I really do not understand why I can not make a console App that uses the Graphics unit because in Delphi there is no problem on that. In Windows it is not really noticeable, because ALL Windows

[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: http://free-pascal-lazarus.989080.n3.nabble.com/Lazarus-TextHeight-in-Console-App

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] 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] 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
/Lazarus-TextHeight-in-Console-App-tp4031311p4031319.html Sent from the Free Pascal - Lazarus mailing list archive at Nabble.com. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

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