Re: [Lazarus] Anchoring with negative values

2008-05-24 Thread Mattias Gaertner
On Sat, 24 May 2008 00:26:51 +0300
Valdas Jankūnas [EMAIL PROTECTED] wrote:

 Mattias Gaertner rašė:
 
Why Border size in BorderSpacing is restricted to only positive
  values?
  
  To avoid overlapping. 
  
  If you want an image with a border, why not put the TImage into a
  TPanel or TGroupBox?
 
   I always try avoid use of TWinControl where i can (because of 
 additional handle [i heard this rule somewhere from old days]).

very old days.

 
   If i place TImage (AutoSize=True) into Panel then which settings in
 OI i must change to let TPanel always accommodate TImage size?

AutoSize=true

Mattias
 

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Forms Color on Linux

2008-05-24 Thread Michael Van Canneyt


On Fri, 23 May 2008, Luiz Americo Pereira Camara wrote:

 Michael Van Canneyt wrote:
  In view of all the double buffering, I'm not surprised that the GTK2 
  version 
  works slow. Double buffering is evil (tm) unless you do moving graphics.
 
 FYI double buffer is disabled for all controls in LCL-Gtk2. This is one 
 of the reasons of the difference between pure gtk2 apps

Strange, if I'm correct, Mattias said that double buffering is used in synedit ?

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Anchoring with negative values

2008-05-24 Thread Valdas Jankūnas
Mattias Gaertner rašė:
   If i place TImage (AutoSize=True) into Panel then which settings in
 OI i must change to let TPanel always accommodate TImage size?
 
 AutoSize=true

  How simple! :) Thanks


-- 
   Valdas Jankūnas
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Forms Color on Linux

2008-05-24 Thread Luiz Americo Pereira Camara
Michael Van Canneyt wrote:
 On Fri, 23 May 2008, Luiz Americo Pereira Camara wrote:

   
 Michael Van Canneyt wrote:
 
 In view of all the double buffering, I'm not surprised that the GTK2 
 version 
 works slow. Double buffering is evil (tm) unless you do moving graphics.
   
 FYI double buffer is disabled for all controls in LCL-Gtk2. This is one 
 of the reasons of the difference between pure gtk2 apps
 

 Strange, if I'm correct, Mattias said that double buffering is used in 
 synedit ?
   
This is a double buffer in the SynEdit side. TCustomControl and TForm 
have double buffer disabled in gtk2 interface.

Luiz
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Forms Color on Linux

2008-05-24 Thread Michael Van Canneyt


On Sat, 24 May 2008, Luiz Americo Pereira Camara wrote:

 Michael Van Canneyt wrote:
  On Fri, 23 May 2008, Luiz Americo Pereira Camara wrote:
 

  Michael Van Canneyt wrote:
  
  In view of all the double buffering, I'm not surprised that the GTK2 
  version 
  works slow. Double buffering is evil (tm) unless you do moving graphics.

  FYI double buffer is disabled for all controls in LCL-Gtk2. This is one 
  of the reasons of the difference between pure gtk2 apps
  
 
  Strange, if I'm correct, Mattias said that double buffering is used in 
  synedit ?

 This is a double buffer in the SynEdit side. TCustomControl and TForm 
 have double buffer disabled in gtk2 interface.

Great. 

Then what is the cause of the perceived slowness of the IDE under GTK 2 ?

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Forms Color on Linux

2008-05-24 Thread Felipe Monteiro de Carvalho
On Sat, May 24, 2008 at 8:35 AM, Michael Van Canneyt
[EMAIL PROTECTED] wrote:
 Then what is the cause of the perceived slowness of the IDE under GTK 2 ?

The only thing slow in the IDE is the code editor. The problem is with
cairo, which is used to draw the text.

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Forms Color on Linux

2008-05-24 Thread Michael Van Canneyt


On Sat, 24 May 2008, Felipe Monteiro de Carvalho wrote:

 On Sat, May 24, 2008 at 8:35 AM, Michael Van Canneyt
 [EMAIL PROTECTED] wrote:
  Then what is the cause of the perceived slowness of the IDE under GTK 2 ?
 
 The only thing slow in the IDE is the code editor. The problem is with
 cairo, which is used to draw the text.

Is it cairo that forces use of double buffering ? 
I mean, drawing text should be a cheap operation, IMHO ?

(not trying to be difficult, just trying to understand...)

Michael.
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Forms Color on Linux

2008-05-24 Thread Luiz Americo Pereira Camara
Felipe Monteiro de Carvalho wrote:
 On Sat, May 24, 2008 at 8:35 AM, Michael Van Canneyt
 [EMAIL PROTECTED] wrote:
   
 Then what is the cause of the perceived slowness of the IDE under GTK 2 ?
 

 The only thing slow in the IDE is the code editor. The problem is with
 cairo, which is used to draw the text.
   

Do you mean pango instead of cairo.

Luiz

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Forms Color on Linux

2008-05-24 Thread Luiz Americo Pereira Camara
Michael Van Canneyt wrote:
 On Sat, 24 May 2008, Felipe Monteiro de Carvalho wrote:

   
 On Sat, May 24, 2008 at 8:35 AM, Michael Van Canneyt
 [EMAIL PROTECTED] wrote:
 
 Then what is the cause of the perceived slowness of the IDE under GTK 2 ?
   
 The only thing slow in the IDE is the code editor. The problem is with
 cairo, which is used to draw the text.
 

 Is it cairo that forces use of double buffering ? 
   

No LCL does not uses cairo at all. All Gtk2 widgets is buffered by 
default. Qt is also double buffered AFAIK.

 I mean, drawing text should be a cheap operation, IMHO ?
   

Yes. But pango goes beyond drawing text. It supports full unicode (even 
broken utf8 encoded strings), bidi, complex text layout, text formatting.

It is one of the main culprits of the difference between gtk1 and gtk2 
performance. Note that Gtk2 uses cairo only after 2.8

Luiz
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Forms Color on Linux

2008-05-24 Thread Felipe Monteiro de Carvalho
On Sat, May 24, 2008 at 9:58 AM, Luiz Americo Pereira Camara
[EMAIL PROTECTED] wrote:
 Do you mean pango instead of cairo.

Umm ... probably

-- 
Felipe Monteiro de Carvalho
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] CodeTools and TMySQL50Connection

2008-05-24 Thread ik
Hello,

I'm trying to work with TMySQL50Connection, however, CodeTools (unlike
the compiler itself) claims that it does not know what is
TMySQL50Connection.

Is there something I should tweak to be able to work with it ?

I'm Attaching an example.

Ido
-- 
http://ik.homelinux.org/


test1.tar.gz
Description: GNU Zip compressed data
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Visual Form Inheritance

2008-05-24 Thread Joao Morais
Mattias Gärtner wrote:
 AFAIK there are two things missing:
 - Easy creating descendant forms via 'New ...' dialog
 - When ancestor and descendant is open at the same time in the designer and 
 you
 change a property of the ancestor, then the descendant properties needs to be
 changed too.

Here I cannot create something like this:

(1) TAbstract = class(TForm)
   Panel

(2) TNotSoAbstract = class(TAbstract)
   SomeButtonInsideTheInheritedPanel

Form (2) works nice.

(3) TConcrete = class(TNotSoAbstract)

Form (3) always raise exceptions saying 'Duplicate name: A component 
named Panel already exists'. One message for each TAbstract member. 
22-may snapshot. Known issue, or should I create a project that 
reproduces the problem and create a bug report?

--
Joao Morais

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


[Lazarus] Cross-compile on Linux from 32bits to 64bits

2008-05-24 Thread TOUZEAU DAVID

Dear

I'm using a 32 bits Linux system to developp and i want my program to be
64 Bits compatible.
What is the best method to allow my program to be compatible on 32 And
64 bits ?

Besst regards


-- 
David Touzeau
--
Linux Ubuntu 7.04 feisty
FreePascal-Lazarus,perl,delphi,php
artica for postfix management console (http://www.artica.fr)
icq:160018849
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] How to compile RTL in Lazarus?

2008-05-24 Thread Marco van de Voort
On Sat, May 17, 2008 at 04:48:36PM +0200, Marco van de Voort wrote:
   source first, since the problem is in the SVN dirs).
 
  Where you were before? This is exactly my problem :)
 
 In the buildfaq. However this is all material not in there yet. Due to a
 burglary, I lost the src to the buildfaq. Maybe I should pick it up again.

The buildfaq has been updated, and now there is also a html version (though
the PDF remains authorative):

http://www.stack.nl/~marcov/buildfaq/buildfaq.html

and

http://www.stack.nl/~marcov/buildfaq.pdf
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] Error rebuilding Lazarus IDE

2008-05-24 Thread Horacio Jamilis
I dont know when nor why but it´s fixed!

Thanks!

Horacio

Vincent Snijders escribió:
 Yury Sidorov schreef:
   
 It is caused by make.exe. If a command contains quote  make.exe 
 creates .bat file with that command and executes this .bat file via 
 cmd.exe, which performs OEM-ANSI conversion for .bat file text...

 To fix this problem use ' instead of  as quotation and make.exe will 
 not create .bat file and all will work (also on Win9x).
 

 Yury, can you help a bit more?

 I need to sets of quotes, one to group the OPT parameter and one to keep the 
 @ 
 filename together.

 E:/lazarus/pp/bin/i386-win32/make.exe --assume-new=lazarus.pp lazarus.exe 
 OPT=' -WG 
 @C:\Documents and Settings\Horacio\Configuración local\Datos de 
 programa\lazarus\idemake.cfg'

 Do you have idea how this can be accomplished?

 Vincent
 __
   
___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus


Re: [Lazarus] ARM-WinCE - db engine, printing

2008-05-24 Thread cc_
Sorry for the late reaction, but  I wanted to get to know MiniLib a bit 
first. It is very promising, thank you very much for the links and for 
making your work available! :)
As development Status  of the project is set to stable I am likely to try to 
use MiniLib with my WinCe project. A few questions beforehand:

- Will you be available if support/help is required? (I would not want to 
force you into it at all, so NO  is a good answer too..)
-  Is there any example program or documentation to help learning how to use 
MiniLib features?


Regards,

   - Leslie -




- Original Message - 
From: Zaher Dirkey [EMAIL PROTECTED]
To: General mailing list lazarus@lazarus.freepascal.org
Sent: Sunday, May 18, 2008 11:31 PM
Subject: Re: [Lazarus] ARM-WinCE - db engine, printing


 About printer Is ESC/POS like as EPSON i used over bluetooth from my
 pocket_pc WinCE 5.0 and WM5
 I commited my work to MiniLib Project
  http://www.sourceforge.net/projects/minilib
 see folder \MiniComm\printers\escpos
 and there is a simple Demo for testing
 MiniComm\demo\delphi\escpos

 i also test it by DOSPrinter
 www.geocities.com/dosprint

 About SQlite in same project there is MiniConnection\db\mncSQLite.pas
 it is not DB aware, it just small simple connection to sqlite worked in 
 WinCE.

 --
 Zaher Dirkey
 ___
 Lazarus mailing list
 Lazarus@lazarus.freepascal.org
 http://www.lazarus.freepascal.org/mailman/listinfo/lazarus
 

___
Lazarus mailing list
Lazarus@lazarus.freepascal.org
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus