Re: [lazarus] Problem: /usr/bin/ld: cannot find -lglib

2006-06-27 Thread Andrew Higgs
Ramon Nogueira wrote: Hi, I'm running lazarus 0.9.16 on Ubuntu 6.06 with FPC 2.0.2 installed from RPMs with alien. Everything runs ok but when I try to build an application (the default one that starts when Lazarus does), I get a linker error: Thanks in advance! Ramon Have you installed l

Re: [lazarus] Problem: /usr/bin/ld: cannot find -lglib

2006-06-27 Thread Lord Satan
On Tue, 27 Jun 2006 18:58:02 +0200 Vincent Snijders <[EMAIL PROTECTED]> wrote: > Ramon Nogueira wrote: > > Hi, I'm running lazarus 0.9.16 on Ubuntu 6.06 with FPC 2.0.2 installed > > from RPMs with alien. Everything runs ok but when I try to build an > > application (the default one that starts whe

[lazarus] MAIN FORM CORRUPTED.

2006-06-27 Thread Henrique de Paula Faria
I have a problem with lazarus 0.9.16beta IDE. After i update from 0.9.15 to 16, the project iam working on had the main form corrupted. The form file (.lfm) seems to have the six first lines removed:   ORIGINAL: object frmPrincipal: TfrmPrincipal   Left = 303   Height = 415   Top = 15

Re: [lazarus] Any king of IsNumeric() function arround?

2006-06-27 Thread Michael Van Canneyt
On Tue, 27 Jun 2006, Alain Michaud wrote: > Hi, > > excuse my naive questions again, but what is wrong with val() Val does not take into account the value of DecimalSeparator. Michael. _ To unsubscribe: mail [EMAIL PROTECT

Re: [lazarus] Any king of IsNumeric() function arround?

2006-06-27 Thread Alain Michaud
Hi, excuse my naive questions again, but what is wrong with val() Alain On Tue, 2006-06-27 at 22:21 +0200, Christian U. wrote: > FUNCTION IsNumeric(s: STRING): boolean; > VAR > i: integer; > BEGIN > //TODO:Replace ',' with Systemdelemiter > Result := (length(s) > 0); > FOR i := 1 TO len

Re: [lazarus] Any king of IsNumeric() function arround?

2006-06-27 Thread A.J. Venter
Shortcomings: 1) Does not handle OTHER pascal supported numeric formats - eg hex 2) Won't work for all character sets I actually think tryTextToFloat is a BETTER way. A.J. On Tuesday 27 June 2006 22:21, Christian U. wrote: > FUNCTION IsNumeric(s: STRING): boolean; > VAR > i: integer; > BEGIN >

Re: [lazarus] Any king of IsNumeric() function arround?

2006-06-27 Thread Christian U.
FUNCTION IsNumeric(s: STRING): boolean; VAR i: integer; BEGIN //TODO:Replace ',' with Systemdelemiter Result := (length(s) > 0); FOR i := 1 TO length(s) DO IF NOT ((Char(s[i]) IN ['0'..'9']) or (Char(s[i]) = DecimalSeparator) or (Char(s[i]) = '-') or (Char(s[i]) = '+')) THEN BEGIN

Re: Any king of IsNumeric() function arround?

2006-06-27 Thread Alexandre Leclerc
2006/6/27, Michael Van Canneyt <[EMAIL PROTECTED]>: On Tue, 27 Jun 2006, Alexandre Leclerc wrote: > 2006/6/27, Alexandre Leclerc <[EMAIL PROTECTED]>: > > I've looked in many rtl units for a IsNumeric() like function. Any > > arround or I should code one? > > Ok, TextToFloat will do the trick.

Re: Any king of IsNumeric() function arround?

2006-06-27 Thread Michael Van Canneyt
On Tue, 27 Jun 2006, Alexandre Leclerc wrote: > 2006/6/27, Alexandre Leclerc <[EMAIL PROTECTED]>: > > I've looked in many rtl units for a IsNumeric() like function. Any > > arround or I should code one? > > Ok, TextToFloat will do the trick. :) Better, use TryTextToFloat - it saves you an excep

Re: Any king of IsNumeric() function arround?

2006-06-27 Thread Alexandre Leclerc
2006/6/27, Alexandre Leclerc <[EMAIL PROTECTED]>: I've looked in many rtl units for a IsNumeric() like function. Any arround or I should code one? Ok, TextToFloat will do the trick. :) -- Alexandre Leclerc _ To unsubscribe: m

[lazarus] Any king of IsNumeric() function arround?

2006-06-27 Thread Alexandre Leclerc
I've looked in many rtl units for a IsNumeric() like function. Any arround or I should code one? Example: IsNumeric('1.00 '): True IsNumeric(' 1.0 0 211 7'): False IsNumeric('1.a'): False IsNumeric('1.0e-10'): False //No scientific-big-numbers notation for now. The '.' should be taken from actua

[lazarus] printing from lazarus

2006-06-27 Thread nonsense
hi all, I am very sorry for newbie question (beause I am a delphi programmer origin) ... but, pls how is possible to print source code from lazarus under windows aka delphi ?? very very pls, move me to any suitsble links (or so)... thns very much nonsense _

Re: [lazarus] Problem: /usr/bin/ld: cannot find -lglib

2006-06-27 Thread Vincent Snijders
Ramon Nogueira wrote: Hi, I'm running lazarus 0.9.16 on Ubuntu 6.06 with FPC 2.0.2 installed from RPMs with alien. Everything runs ok but when I try to build an application (the default one that starts when Lazarus does), I get a linker error: Free Pascal Compiler version 2.0.2 [2005/11/26] for

[lazarus] Problem: /usr/bin/ld: cannot find -lglib

2006-06-27 Thread Ramon Nogueira
Hi, I'm running lazarus 0.9.16 on Ubuntu 6.06 with FPC 2.0.2 installed from RPMs with alien. Everything runs ok but when I try to build an application (the default one that starts when Lazarus does), I get a linker error: Free Pascal Compiler version 2.0.2 [2005/11/26] for i386 Copyright (c) 1993

Re: [lazarus] amd64

2006-06-27 Thread Alain Michaud
Hi, > b: download the binary for linux amd64 (x86_64) from the www.freepascal.org > website and install it. > > http://www.freepascal.org/down/x86_64/linux-ftp.freepascal.org.html > > Mattias > Once I have this installed. Can I compile the regular lazarus source code?, or is there a special pa

Re: [lazarus] Clipboard and Image formats

2006-06-27 Thread Christian U.
> You must register the format type of what you wish to add to the > Windows clipboard, first of all, then you must (unless it's a bitmap > or wmf file), create your own format to place it and register it as a > data. schould bitmap not be registered within the lcl ??? > To read it, you must also

Re: [lazarus] ide freezes on exit on Linux.

2006-06-27 Thread Giuliano Colla
Mattias Gaertner ha scritto: On Tue, 27 Jun 2006 14:13:01 +0200 Giuliano Colla <[EMAIL PROTECTED]> wrote: The last snapshots from svn show an annoying behavior. If you run an application from ide, the ide freezes on exit, and you're forced to kill it. Having the debugger enable

Re: [lazarus] fpcunit - patch (part 1)

2006-06-27 Thread Graeme Geldenhuys
Is this for trying to commit the changes to SubVersion? I always work against the latest SubVersion revision... Changes are on my other development PC, so will only be able to send it to you later. Regards, - Graeme - On 6/27/06, Al Boldi <[EMAIL PROTECTED]> wrote: Won't apply onto 0.9.15.

Re: [lazarus] ide freezes on exit on Linux.

2006-06-27 Thread Mattias Gaertner
On Tue, 27 Jun 2006 14:13:01 +0200 Giuliano Colla <[EMAIL PROTECTED]> wrote: > The last snapshots from svn show an annoying behavior. If you run an > application from ide, the ide freezes on exit, and you're forced to kill > it. Having the debugger enabled or not doesn't make any difference. If

Re: [lazarus] fpcunit - patch (part 1)

2006-06-27 Thread Al Boldi
Graeme Geldenhuys wrote: > Attached is a patch for /components/fpcunit. The patch should be > applied from the root Lazarus directory. > > It is a combined patch (a few files have changes). Won't apply onto 0.9.15. Can you send the changed files in full? Thanks! -- Al

Re: [lazarus] FPC performance profile

2006-06-27 Thread Al Boldi
Al Boldi wrote: > Christian Budde wrote: > > I'm not into FPC, but this looks like if the compiler doesn't put the > > variable(/branch address) on an address which is dividable by 16. On > > some Intel processors, that makes a huge difference, especially in case > > of branches. > > So you are say

Re: [lazarus] fpGui and fpGfx

2006-06-27 Thread Michael Van Canneyt
On Tue, 27 Jun 2006, Graeme Geldenhuys wrote: Hi, Anybody know the history of these two projects? Why was the development stopped? Lack of time. I still think a custom lightweight toolkit for FPC and Lazarus will be great. No dependency on large toolkits, looks the same on all platform

[lazarus] ide freezes on exit on Linux.

2006-06-27 Thread Giuliano Colla
The last snapshots from svn show an annoying behavior. If you run an application from ide, the ide freezes on exit, and you're forced to kill it. Having the debugger enabled or not doesn't make any difference. If you just start lazarus, edit files etc. without launching the app, it terminates

Re: [lazarus] Problem porting an application

2006-06-27 Thread Marco van de Voort
> On Mon, 26 Jun 2006, Nathan Samson wrote: > > > sorry for not giving the errors > > > > OtherMethod.pas(114,19) Error: Identifier not found "FindIntToIdent" > > OtherMethod.pas(127,18) Error: Identifier not found "FindIdentToInt" > > Where does this function 'FindIntToIdent' come from ? Classe

[lazarus] fpGui and fpGfx

2006-06-27 Thread Graeme Geldenhuys
Hi, Anybody know the history of these two projects? Why was the development stopped? I still think a custom lightweight toolkit for FPC and Lazarus will be great. No dependency on large toolkits, looks the same on all platforms, anti-aliased fonts, etc... I am currently working on a heavily m

Re: [lazarus] StretchDIBits API for Linux?

2006-06-27 Thread Paul Michell
Felipe thanks for the code, I guess this requires the source to be a TBitmap, or something else with a Canvas property? I am actually working with a raw memory buffer so that I can do fast scanline access. I was hoping there was an X Windows or GTK call that could take a pointer to this memory in

Re: [lazarus] amd64

2006-06-27 Thread Mattias Gaertner
On Mon, 26 Jun 2006 21:44:02 -0400 Alain Michaud <[EMAIL PROTECTED]> wrote: > Hi, > > how do I install FPC 2.0.2 (and Lazarus) on a AMD 64 ? > > a: it does not work > > b: you have to install some special version i886 or someting > > c: you have to edit somefile... b: download the binary fo