Re: [lazarus] Why are the generated binaries so big?

2005-11-15 Thread darekM
Graeme Geldenhuys napisał(a): Hi Darek, [ Strange name, where is it from? ] This is Darius (from Poland Dariusz) Darek _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at

Re: [lazarus] Re: TBitBtn and custom glyph

2005-11-15 Thread Graeme Geldenhuys
Thanks for all the replies. For now I would prefer to use the more stable version of Laz (0.9.10). Can I convert my bmp's to another format that is currently supported in Laz with transparency? I see xpm's are also used in Lazarus - do they support transparency?. What tool can I use if it is

Re: [lazarus] Why are the generated binaries so big?

2005-11-15 Thread Graeme Geldenhuys
Hi Darek, [ Strange name, where is it from? ] Thanks for the tip. I thought it might be debugging info making it bloated. My Lazarus .exe went back down to 7Mb! :) Regards, - Graeme - darekM wrote: Try to go to c:\lazarus\pp\bin\i386-win32\. There is a file - strip.exe. Simply type st

Re: [lazarus] Re: TBitBtn and custom glyph

2005-11-15 Thread Mattias Gaertner
On Tue, 15 Nov 2005 22:12:33 -0200 Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: > Mattias Gaertner wrote: > > Delphi uses the corner pixel (0,Height-1) to decide, which color is the > > transparent color. > > It's not yet implemented in the LCL TBitmap. It's a Delphi hack to add > > tran

[lazarus] Re: TBitBtn and custom glyph

2005-11-15 Thread Felipe Monteiro de Carvalho
Mattias Gaertner wrote: Delphi uses the corner pixel (0,Height-1) to decide, which color is the transparent color. It's not yet implemented in the LCL TBitmap. It's a Delphi hack to add transparency to .bmp files. Sorry, but this is incorrect. This has being recently implemented. Refer to http

Re: [lazarus] Check if IDE is running

2005-11-15 Thread Andrew Haines
[EMAIL PROTECTED] wrote: I want to check in my application if the IDE is running or not. The reason for doing that is to prevent unnescesary waiting while debugging. For this reason I thought of using: if Application.ComponentState = [csDesigning] But it does not work obviously. Any thoughts?

Re: [lazarus] Check if IDE is running

2005-11-15 Thread Mattias Gaertner
On Wed, 16 Nov 2005 00:50:01 +0100 (CET) [EMAIL PROTECTED] wrote: > I want to check in my application if the IDE is running or not. The reason > for doing that is to prevent unnescesary waiting while debugging. > For this reason I thought of using: > > if Application.ComponentState = [csDesigning

Re: [lazarus] Incredibly weird canvas.TextOut bug

2005-11-15 Thread Mattias Gaertner
On Thu, 10 Nov 2005 19:05:28 +0200 "A.J. Venter" <[EMAIL PROTECTED]> wrote: > On Wednesday 09 November 2005 04:29, A.J. Venter wrote: > > On Wednesday 09 November 2005 04:22, A.J. Venter wrote: > > > Hi all, I'm totally stumped by this one, for some reason, within my > > > one custom component (a

Re: [lazarus] patch files (.diff)

2005-11-15 Thread Mattias Gaertner
On Tue, 15 Nov 2005 09:25:08 +0200 Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > Hi, > > I am using 0.9.10 on win32. Can I attach or include .diff files > generated, using Tools->Diff for a few fixes I did locally. Yes. But a normal svn diff is preferred, because it contains version informati

Re: [lazarus] Patch for toolbuttons and evaluate dialog (issue 500)

2005-11-15 Thread Mattias Gaertner
On Tue, 15 Nov 2005 09:03:59 +0100 Micha Nelissen <[EMAIL PROTECTED]> wrote: > Mattias Gaertner wrote: > > Thanks. Applied. > > KeyPress replaced with KeyDown. > > Shouldn't matter, should it ? Not much. VK_RETURN is IMHO just more readable than #13. Mattias _

Re: [lazarus] TBitBtn and custom glyph

2005-11-15 Thread Mattias Gaertner
On Tue, 15 Nov 2005 10:40:22 +0200 Graeme Geldenhuys <[EMAIL PROTECTED]> wrote: > I use glyphs I bought from GlyFX (bmp files), which has a > Fuchsia/Magenta background (mask). When I add a glyph to a bitbtn, I > don't want it to show the Fuchsia/Magenta background color on the > button. Delph

[lazarus] Check if IDE is running

2005-11-15 Thread dhkblaszyk
I want to check in my application if the IDE is running or not. The reason for doing that is to prevent unnescesary waiting while debugging. For this reason I thought of using: if Application.ComponentState = [csDesigning] But it does not work obviously. Any thoughts? Darius ___

Re: [lazarus] fpc for laz

2005-11-15 Thread Mattias Gaertner
On Tue, 15 Nov 2005 19:57:48 +0200 Bob Barry <[EMAIL PROTECTED]> wrote: > Version of svn fpc is now 2.1.1. Version of svn fixes is now 2.0.3. > > Which is currently recommended for Lazarus? 2.0.3 is more tested. 2.1.1 is less stable, but may have new features you need. Mattias __

Re: [lazarus] Re: .pp & .pas files

2005-11-15 Thread Mattias Gaertner
On Tue, 15 Nov 2005 16:03:58 -0200 Felipe Monteiro de Carvalho <[EMAIL PROTECTED]> wrote: > Graeme Geldenhuys wrote: > > Is there some rule as to when one must use .pp or .pas file extensions? > > I come from Delphi where we only use .pas extensions. > > I think they are the same. I only use .p

Re: [lazarus] Why are the generated binaries so big?

2005-11-15 Thread Jani Mátyás
Bram Kuijvenhoven wrote: Vincent Snijders wrote: Jani Mátyás wrote: I think someone who can edit the FAQ on the lazarus website should add this to the FAQ, just to avoid these questions. Thanks. Feel free to update: http://wiki.lazarus.freepascal.org/index.php/Lazarus_Faq#General I think i

Re: [lazarus] Why are the generated binaries so big?

2005-11-15 Thread Bram Kuijvenhoven
Vincent Snijders wrote: Jani Mátyás wrote: I think someone who can edit the FAQ on the lazarus website should add this to the FAQ, just to avoid these questions. Thanks. Feel free to update: http://wiki.lazarus.freepascal.org/index.php/Lazarus_Faq#General I think it should not be mentioned

[lazarus] Re: Why are the generated binaries so big?

2005-11-15 Thread Felipe Monteiro de Carvalho
Graeme Geldenhuys wrote: I read this exact question in the FPC's FAQ and tried all the compiler options they mentioned. The executable ends up between 6.1Mb and 9Mb in size. And that is for a Win32 Gui "Hello World" app compiled under Lazarus 0.9.10. First use strip (as said on the other po

[lazarus] Re: .pp & .pas files

2005-11-15 Thread Felipe Monteiro de Carvalho
Graeme Geldenhuys wrote: Is there some rule as to when one must use .pp or .pas file extensions? I come from Delphi where we only use .pas extensions. I think they are the same. I only use .pas on Lazarus also. Felipe _ To u

Re: [lazarus] Synedit error-Bit more

2005-11-15 Thread dannym
Hi, Am Dienstag, den 15.11.2005, 11:09 +0300 schrieb Timothy Ha: > Why don't we try Ord() function? Ord() doesn't work for sets. Ord is for "Ordinal", which implies position. There is no position in sets. cheers, Danny _ T

[lazarus] fpc for laz

2005-11-15 Thread Bob Barry
Version of svn fpc is now 2.1.1. Version of svn fixes is now 2.0.3. Which is currently recommended for Lazarus? _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://ww

Re: [lazarus] Why are the generated binaries so big?

2005-11-15 Thread Vincent Snijders
Jani Mátyás wrote: I think someone who can edit the FAQ on the lazarus website should add this to the FAQ, just to avoid these questions. Thanks. Feel free to update: http://wiki.lazarus.freepascal.org/index.php/Lazarus_Faq#General Regards, Vincent __

Re: [lazarus] Installing Lazarus on SuSE 10.0

2005-11-15 Thread sana
kedd 15 november 2005 12:40 dátummal Michael Obenland ezt írta: > Hi, > > > Is there somebody, who knows all tricks to compile Lazarus > > correctly on suse 10.0 ? > > Didn't compile my lazarus but used the rpm files for lazarus, fpc and > doc. Works fine on 10.0 after some tweek. But my problem

Re: [lazarus] Why are the generated binaries so big?

2005-11-15 Thread Jani Mátyás
darekM wrote: Graeme Geldenhuys napisał(a): I read this exact question in the FPC's FAQ and tried all the compiler options they mentioned.  The executable ends up between 6.1Mb and 9Mb in size.  And that is for a Win32 Gui "Hello World" app compiled under Lazarus 0.9.10. I also r

Re: [lazarus] Why are the generated binaries so big?

2005-11-15 Thread darekM
Graeme Geldenhuys napisał(a): I read this exact question in the FPC's FAQ and tried all the compiler options they mentioned.  The executable ends up between 6.1Mb and 9Mb in size.  And that is for a Win32 Gui "Hello World" app compiled under Lazarus 0.9.10. I also recompiled the Lazarus I

[lazarus] Why are the generated binaries so big?

2005-11-15 Thread Graeme Geldenhuys
I read this exact question in the FPC's FAQ and tried all the compiler options they mentioned. The executable ends up between 6.1Mb and 9Mb in size. And that is for a Win32 Gui "Hello World" app compiled under Lazarus 0.9.10. I also recompiled the Lazarus IDE and it went from 7Mb to 22.9Mb.

Re: [lazarus] Installing Lazarus on SuSE 10.0

2005-11-15 Thread Michael Obenland
Hi, > Is there somebody, who knows all tricks to compile Lazarus > correctly on suse 10.0 ? Didn't compile my lazarus but used the rpm files for lazarus, fpc and doc. Works fine on 10.0 after some tweek. But my problems where caused by the fact that I had an old, self-compiled fpc on my machi

Re: [lazarus] .pp & .pas files

2005-11-15 Thread Ales Katona
There's some explanation in FPC docs. IIRC pp stands for "pascal plus" and is the old extension of FPC programs. I think it's more of a preference over "rule" since if you look at sources of lazarus or fpc itself you'll noticed different names for different thing. I think one "rule" is that if

[lazarus] .pp & .pas files

2005-11-15 Thread Graeme Geldenhuys
Is there some rule as to when one must use .pp or .pas file extensions? I come from Delphi where we only use .pas extensions. Regards, - Graeme - _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" a

Re: [lazarus] Patch for toolbuttons and evaluate dialog (issue 500)

2005-11-15 Thread Ere Maijala
Micha Nelissen wrote: Mattias Gaertner wrote: Thanks. Applied. KeyPress replaced with KeyDown. Shouldn't matter, should it ? No, not that I know of. Something's causing it to beep though (at least on Windows). In a test program this doesn't happen for a single combobox, so it must be som

Re: [lazarus] TBitBtn and custom glyph

2005-11-15 Thread Graeme Geldenhuys
I use glyphs I bought from GlyFX (bmp files), which has a Fuchsia/Magenta background (mask). When I add a glyph to a bitbtn, I don't want it to show the Fuchsia/Magenta background color on the button. Delphi detected & removed the background color from the glyph so it only showed the image par

Re: [lazarus] Synedit error-Bit more

2005-11-15 Thread christer . t . johansson
Take a look here: http://www.delphibasics.co.uk/RTL.asp?Name=Set /Chrizz Message from John Samperi <[EMAIL PROTECTED]> received on 2005-11-15 09:26

Re: [lazarus] Synedit error-Bit more

2005-11-15 Thread Timothy Ha
John Samperi wrote: By the way what is a 'set'? I'm looking it up in D6 PE Help file to try and understand. Try this: http://delphi.about.com/od/objectpascalide/l/aa012500a.htm Delphi's programming language is an example of a strongly typed language. This means that all variables must be of

Re: [lazarus] Synedit error-Bit more

2005-11-15 Thread John Samperi
At 07:09 PM 15/11/2005, you wrote: Why don't we try Ord() function? Please elaborate...remember I'm only an OLD beginner :-) How could I use it in the following: myINI.WriteInteger('Editor','Font Style',SynEdit1.Font.Style); I guess that if I use Christer's code it should change to:

Re: [lazarus] error when compile Lazarus on Debian

2005-11-15 Thread Vincent Snijders
Simeon Mitev wrote: the next problem is: ... Fatal: Can't find unit glib Error: Compilation aborted i am running KDE 3.4 I think your fpc installation isn't complete and you are missing a configuration file: /etc/fpc.cfg or ~/.fpc.cfg. You can create a standard version with the samplecfg scri

Re: [lazarus] TBitBtn and custom glyph

2005-11-15 Thread Micha Nelissen
Graeme Geldenhuys wrote: I added a custom glyph which contains a clFuchsia mask. In Delphi (I am new to Lazarus) when I did that, it automatically detected and removed the mask. What do you mean with "removed the mask" ? Micha

Re: [lazarus] Synedit error-Bit more

2005-11-15 Thread Timothy Ha
Why don't we try Ord() function? [EMAIL PROTECTED] wrote: Hi John. FontStyle is a 'set' , but I think you can get it this way: --- type pFontStyles = ^TFontStyles; pInteger = ^integer; function FontStylesToInteger(const Value : TFontStyles): integer; begin Result := pInteger(@Value)^;

Re: [lazarus] Patch for toolbuttons and evaluate dialog (issue 500)

2005-11-15 Thread Micha Nelissen
Mattias Gaertner wrote: Thanks. Applied. KeyPress replaced with KeyDown. Shouldn't matter, should it ? Micha _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.l

Re: [lazarus] error when compile Lazarus on Debian

2005-11-15 Thread Micha Nelissen
Simeon Mitev wrote: the next problem is: ... Fatal: Can't find unit glib Error: Compilation aborted apt-get install fp-units-gtk Micha _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject