Re: [Lazarus] Cross-platform virtual key codes

2009-06-21 Thread Vincent Snijders
Bruce Tulloch schreef: Where (if anywhere) are the cross-platform equivalents to Win32's VK_* definitions? For example the symbolic definition of the return key is VK_RETURN in Win32 (accessed by including the Windows unit). Where are corresponding definitions to be found for the other targets

[Lazarus] Cross-platform virtual key codes

2009-06-21 Thread Bruce Tulloch
Where (if anywhere) are the cross-platform equivalents to Win32's VK_* definitions? For example the symbolic definition of the return key is VK_RETURN in Win32 (accessed by including the Windows unit). Where are corresponding definitions to be found for the other targets (Linux, OSX etc) or alter

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-21 Thread Hans-Peter Diettrich
Martin Friebe schrieb: The problem was started due to being forced to use a unit, that the developer didn't want. IMHO this must be solved, the rest is responsibility of the developer. Other compilers have apptype specific startup code. The same could be achived by a global $define, e.g. APP

[Lazarus] Form designer's default font.

2009-06-21 Thread Bruce Tulloch
My apologies if I've missed the obvious somewhere but how is the default font used by the form designer specified? If a form is created with the ParentFont property set to TRUE, from where does it get its font spec when it is open in the form designer? And how do I change this font spec without ha

Re: [Lazarus] IDE not building .lrs files

2009-06-21 Thread Bruce Tulloch
Mattias Gaertner wrote: > Maybe you were looking in the wrong place? Thanks Mattias, that seems to be the problem. The .lrs file was indeed being created in the project's output directory. Adding this directory to the include path fixed the problem for this project. Why is it necessary to speci

Re: [Lazarus] LNet + fcl-web 2.3.1 fastcgi.pp

2009-06-21 Thread Osvaldo Filho
Files are equal: on LNet: === unit fastcgi; interface { Automatically converted by H2Pas 0.99.16 from fastcgi.h The following command line parameters were used: fastcgi.h } {$IFDEF FPC} {$PACKRECORDS C} {$ENDIF} { * Listening socket file number } const FCGI_LISTENSOCK_FIL

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-21 Thread Mattias Gaertner
On Sun, 21 Jun 2009 22:26:15 +0100 Martin Friebe wrote: >[...] > The beginning of this thread was, that 2 applications existed, > because the developer was *forced* to included "interfaces": > > Jost wrote in the initial mail of this thread: > > I always thought that an application always had on

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-21 Thread Martin Friebe
Mattias Gaertner wrote: On Sun, 21 Jun 2009 19:39:17 +0100 Martin Friebe wrote: So the question I was raising was: Is forcefully avoiding any multi-app scenario the right solution? The problem was started due to being forced to use a unit, that the developer didn't want. IMHO this must be

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-21 Thread Mattias Gaertner
On Sun, 21 Jun 2009 19:39:17 +0100 Martin Friebe wrote: > > > Graeme Geldenhuys wrote: > > Martin Friebe wrote: > >> > >> Example: I may write a cgi-application (therefore it must have the > >> web-fcl CgiApplication, right?), but I want to use this app to > >> report the current screen resolu

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-21 Thread Graeme Geldenhuys
Martin Friebe wrote: True, but not the point, sorry. I know and understood that. I just wanted to make it clear that by pulling in "gui" units into a CGI (non-gui) application is not a good idea. So the question I was raising was: Is forcefully avoiding any multi-app scenario the right sol

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-21 Thread Martin Friebe
Graeme Geldenhuys wrote: Martin Friebe wrote: Example: I may write a cgi-application (therefore it must have the web-fcl CgiApplication, right?), but I want to use this app to report the current screen resolution on the Server, so I do want to access the Screen object from the forms unit,

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-21 Thread Michael Van Canneyt
On Sun, 21 Jun 2009, Graeme Geldenhuys wrote: Martin Friebe wrote: Example: I may write a cgi-application (therefore it must have the web-fcl CgiApplication, right?), but I want to use this app to report the current screen resolution on the Server, so I do want to access the Screen object

Re: [Lazarus] LNet + fcl-web 2.3.1 fastcgi.pp

2009-06-21 Thread Michael Van Canneyt
On Sun, 21 Jun 2009, Joost van der Sluis wrote: Op zondag 21-06-2009 om 12:45 uur [tijdzone +0200], schreef Michael Van Canneyt: On Sun, 21 Jun 2009, Aleš Katona wrote: > On Sat, 20 Jun 2009 14:37:07 -0300 > Osvaldo Filho wrote: > >> The package LNet has a unit with the same name of fpc 2.

Re: [Lazarus] LNet + fcl-web 2.3.1 fastcgi.pp

2009-06-21 Thread Joost van der Sluis
Op zondag 21-06-2009 om 12:45 uur [tijdzone +0200], schreef Michael Van Canneyt: > > On Sun, 21 Jun 2009, Aleš Katona wrote: > > > On Sat, 20 Jun 2009 14:37:07 -0300 > > Osvaldo Filho wrote: > > > >> The package LNet has a unit with the same name of fpc 2.3.1: > >> fastcgi.pp > >> > >> How can i

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-21 Thread Graeme Geldenhuys
Martin Friebe wrote: Example: I may write a cgi-application (therefore it must have the web-fcl CgiApplication, right?), but I want to use this app to report the current screen resolution on the Server, so I do want to access the Screen object from the forms unit, As a side note: CGI applic

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-21 Thread Marco van de Voort
On Sat, Jun 20, 2009 at 09:17:36AM -0700, Samuel Herzog wrote: > By the way, > > I was always wondering why there is not TUser object and no TComputer. There are several reasons to avoid doing this in cross-platform ways. There might devel an shear infinitely complex matrix of dependancies, and p

Re: [Lazarus] Some thoughts about the global 'Application' instance.

2009-06-21 Thread Martin Schreiber
On Saturday 20 June 2009 16:11:12 Martin Friebe wrote: > The best way to avoid it, is or the author of the program only to use > units that do not instantiate an application, other than the one(s) needed. > MSEgui has tapplication and tguiapplication which both inherit from tcustomapplication. tc

Re: [Lazarus] LNet + fcl-web 2.3.1 fastcgi.pp

2009-06-21 Thread Aleš Katona
> > Maybe it is best to rename the unit in FPC to fpfastcgi. This is in line > with the rest of the unit names. If Joost agrees on that ? > > Michael. One way or the other. I can rename in lNet as well if it's a problem. But since this seems to be a trunk thing, changing in FPC might be simpler

Re: [Lazarus] LNet + fcl-web 2.3.1 fastcgi.pp

2009-06-21 Thread Michael Van Canneyt
On Sun, 21 Jun 2009, Aleš Katona wrote: On Sat, 20 Jun 2009 14:37:07 -0300 Osvaldo Filho wrote: The package LNet has a unit with the same name of fpc 2.3.1: fastcgi.pp How can i install lnet? Hmm must be new. I'll look into this. Maybe it is best to rename the unit in FPC to fpfastcg

Re: [Lazarus] LNet + fcl-web 2.3.1 fastcgi.pp

2009-06-21 Thread Aleš Katona
On Sat, 20 Jun 2009 14:37:07 -0300 Osvaldo Filho wrote: > The package LNet has a unit with the same name of fpc 2.3.1: > fastcgi.pp > > How can i install lnet? > Hmm must be new. I'll look into this. Ales -- ___ Lazarus mailing list Lazarus@lists.l

Re: [Lazarus] IDE not building .lrs files

2009-06-21 Thread Mattias Gaertner
On Sun, 21 Jun 2009 15:26:15 +1000 Bruce Tulloch wrote: > I have a project (ported from Delphi) with some forms in which the IDE > form designer does not rebuild (or create in the first place) the .lrs > files when the .lfm file is modified. Manually building them with > lazres works fine but the

Re: [Lazarus] Vector graphics on Lazarus.

2009-06-21 Thread Mattias Gaertner
On Sat, 20 Jun 2009 19:34:34 +0100 Geoff Bagley wrote: > Felipe Monteiro de Carvalho wrote: > > > > I am writing fpvectorial, a vectorial graphics library for Free > > Pascal, and planning to add it to Free Pascal subversion in some > > point in the future. > > > > At the moment it only has 2 i