Re: [lazarus] Cursor for TShape

2006-04-03 Thread Marien van Westen
there's no way to fix the case where e.g. user code changethe Cursor of the parent while the mouse is over the TShape.
Yes, You are right I guess one will have to resort to doing this proposed fix, manually,
using OnMouseEnter and OnMouseLeave, for now...That's the first thing I did on Linux.I converted one of my Delphi programs to Lazarus, and in the win32 version of Lazarus it is possible to change the cursor of a TShape.
On Linux (gtk1) this doen't work, so I try to get the same behaviour on both platforms by allowing a cursor change on Linux.I try to get as close as possible to Delphi, so converting existing programs will be as easy as possible.
Marien


[lazarus] Gtk 1.x theme

2006-04-03 Thread Graeme Geldenhuys
Hi,

I know this is not directly related to Lazarus, but can anybody
recommend a good Gtk 1.x theme I can use under Linux and Lazarus.  I
really don't like the Default (no theme) theme.

I just tried the Gorilla theme. It makes the buttons and scollbars
look great, but ToolButtons disappear (eg: the buttons in Lazarus next
to the Component Palette).  The mouse-over on flat buttons don't seem
to work either.

I don't need anything flashy, just usable.

Regards,
  - Graeme -

--
There's no place like 127.0.0.1

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] keyboard shortcuts in Lazarus menus

2006-04-03 Thread Graeme Geldenhuys
Hi,

I tried to create a patch for this, but for the life of me, I couldn't
find where this is defined in the IDE.
If you look at the screenshot supplied, the shortcut key for Shift is
spelled Shft. Also the shortcut key for Control is spelled Ctl
instead of Ctrl.

The keymapping.pp file seemed to be the place to look for this, but I
could only find the correct spellings of those keyboard shortcuts. 
:-(

I am using the latest SVN version, and it appears like this under
Linux and Windows.

Regards,
  - Graeme -


--
There's no place like 127.0.0.1


menu.png
Description: PNG image


Re: [lazarus] keyboard shortcuts in Lazarus menus

2006-04-03 Thread Vincent Snijders

Graeme Geldenhuys schreef:

Hi,

I tried to create a patch for this, but for the life of me, I couldn't
find where this is defined in the IDE.
If you look at the screenshot supplied, the shortcut key for Shift is
spelled Shft. Also the shortcut key for Control is spelled Ctl
instead of Ctrl.

The keymapping.pp file seemed to be the place to look for this, but I
could only find the correct spellings of those keyboard shortcuts. 
:-(


I am using the latest SVN version, and it appears like this under
Linux and Windows.


Strange, I am using windows and there it is spelled Shift and
Ctrl. Therefore to me it seems like it is done by GTK1 when you set the 
shortcut.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] keyboard shortcuts in Lazarus menus

2006-04-03 Thread Mattias Gaertner
On Mon, 3 Apr 2006 10:16:09 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 Hi,
 
 I tried to create a patch for this, but for the life of me, I couldn't
 find where this is defined in the IDE.
 If you look at the screenshot supplied, the shortcut key for Shift is
 spelled Shft. Also the shortcut key for Control is spelled Ctl
 instead of Ctrl.

With the gtk interface the menu modifiers are defined in the gtk. What's
wrong with it?

 
 The keymapping.pp file seemed to be the place to look for this, but I
 could only find the correct spellings of those keyboard shortcuts. 
 :-(

The keymapping.pp only uses them to load/save them to xml files.

 
 I am using the latest SVN version, and it appears like this under
 Linux and Windows.

Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Gtk 1.x theme

2006-04-03 Thread Mattias Gaertner
On Mon, 3 Apr 2006 10:02:20 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 Hi,
 
 I know this is not directly related to Lazarus, but can anybody
 recommend a good Gtk 1.x theme I can use under Linux and Lazarus.  I
 really don't like the Default (no theme) theme.
 
 I just tried the Gorilla theme. It makes the buttons and scollbars
 look great, but ToolButtons disappear (eg: the buttons in Lazarus next
 to the Component Palette).  The mouse-over on flat buttons don't seem
 to work either.

The buttons on the left are TSpeedButton.
They work here even with image themes.
Can you send the gorilla theme?

 
 I don't need anything flashy, just usable.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] keyboard shortcuts in Lazarus menus

2006-04-03 Thread Graeme Geldenhuys
On 03/04/06, Mattias Gaertner [EMAIL PROTECTED] wrote:
  I tried to create a patch for this, but for the life of me, I couldn't
  find where this is defined in the IDE.
  If you look at the screenshot supplied, the shortcut key for Shift is
  spelled Shft. Also the shortcut key for Control is spelled Ctl
  instead of Ctrl.

 With the gtk interface the menu modifiers are defined in the gtk. What's
 wrong with it?

I did some more testing after Vincents reply.  I does seem to be Gtk
1.x that is causing this.  I disabled all themes to take that out of
the equation.
Gtk 1.x must have shortcut modifiers defined as Ctl instead of
Ctrl and Shft instead of Shift.  Compile a simple test app under
Gtk 2.x yields the results I expected. This doesn't affect
functionality.

Sorry, I though it was a bug (spelling mistake) in Lazarus, but guess
it is just Gtk 1.x
See attached screenshots of the same app under Gtk1 and Gtk2.

Regards,
  - Graeme -


--
There's no place like 127.0.0.1


menu_gtk1.png
Description: PNG image


menu_gtk2.png
Description: PNG image


Re: [lazarus] Gtk 1.x theme

2006-04-03 Thread Graeme Geldenhuys
Hi Mathias

It came as part of Ubuntu (I think), so don't know what the original
package name where.  What I did was pack the related theme folders. 
Gorilla seem to be based on Industrial theme, which causes the same
problem.  Both are in the attached file.

Regards,
  - Graeme -


On 03/04/06, Mattias Gaertner [EMAIL PROTECTED] wrote:
 On Mon, 3 Apr 2006 10:02:20 +0200
 Graeme Geldenhuys [EMAIL PROTECTED] wrote:

  Hi,
 
  I know this is not directly related to Lazarus, but can anybody
  recommend a good Gtk 1.x theme I can use under Linux and Lazarus.  I
  really don't like the Default (no theme) theme.
 
  I just tried the Gorilla theme. It makes the buttons and scollbars
  look great, but ToolButtons disappear (eg: the buttons in Lazarus next
  to the Component Palette).  The mouse-over on flat buttons don't seem
  to work either.

 The buttons on the left are TSpeedButton.
 They work here even with image themes.
 Can you send the gorilla theme?


  I don't need anything flashy, just usable.


 Mattias

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives



--
There's no place like 127.0.0.1


gtk1_themes.tar.bz2
Description: BZip2 compressed data


Re: [lazarus] Patch for TBitmap Mask proposal

2006-04-03 Thread Tomas Gregorovic

Mattias Gaertner napsal(a):


On Fri, 31 Mar 2006 12:36:27 +0200
Tomas Gregorovic [EMAIL PROTECTED] wrote:

 


Mattias Gaertner napsal(a):

   


On Thu, 30 Mar 2006 15:23:08 +0200
Tomas Gregorovic [EMAIL PROTECTED] wrote:



 


Tomas Gregorovic napsal(a):

  

   


And where do you actually create the alpha mask?


   



 

I create the aplha mask in function CreateBitmapMask. I draw source 
bitmap to monochromatic mask bitmap using a trick which changes the 
transparent color to white in the mask bitmap. I am not sure if it
   


is  multiplatform.
 

 

  

   


And where is the 8 or 16 bit alpha mask created?




 

I don't know what you are actually asking about. The CreateBitmapMask 
function creates only 1 bit mask, because it is enough to make one
   

color 
 


transparent.

Is there some need to create any bit-depth masks?
  

   


I got the bad feeling there is a misunderstanding.
At the moment the LCL only provides 1 bit transparency. For the LCL it
does not matter if the alpha channel is separated in a MaskHandle or
contained in the Handle. The gtk interface uses a combo Handle, while
 


the win32 interface uses a separate MaskHandle.
 


Of course we want alpha transparency, i.e. 1 bit, which is typically 8
or 16 bit alpha channel. 
AFAIK the gtk1 does not support 8 bit masks (at least not without

tricks), but the gtk2 supports them.
The only missing part is to add 8 bit transparency support to the gtk2
interface and some properties to TBitmap, so the user can select the
alpha depth.
I thought, your patch is starting the latter. But maybe you meant
something different?





 


Maybe. I wanted to implement bitmap color transparency, which is
adjusted through TransparentColor porperty...
  

   


Huh? This already works. What exactly are you trying to implement?


 

But from my point of view it doesn't work. I have tested it on several 
various lazarus versions including the latest svn snapshot with attached 
small project and it simply does not function!
Therefore I had thought it's not implemented and created that patch. 
Maybe it's only some bug occuring on my system.
   



Thanks. The bitmap is loaded transparent.
I could not test the := Image1.Picture.Bitmap.Canvas.Pixels[X, Y];, as this
does is not yet implemented under gtk1 interface.
You want to switch the transparentcolor, when the image is already loaded,
right?
I implemented that.

 


Aboslutely right.
It works but there is a problem with xpm images - when you set some 
transparent color, strange stripes appear (see screenshot 1).


There is another issue: when the bitmap is loaded with default 
transparency (the left-bottom pixel color is transparent) then all 
pixels with this color appear to be black if transparent color is 
changed and the original color is lost (e.g. clFuchsia on sceenshot2).


tombo




[lazarus] Patch for TImage.Transparent

2006-04-03 Thread Tomas Gregorovic
Hi, this is only small patch which causes to change 
Image.Picture.Graphic.Transparent if Image.Transparent is changed. This 
is same how Delphi behave.


tombo
Index: lcl/include/customimage.inc
===
--- lcl/include/customimage.inc (revision 8932)
+++ lcl/include/customimage.inc (working copy)
@@ -148,6 +148,7 @@
 SetAutoSize(False);
 SetAutoSize(True);
   end;
+  if Picture.Graphic  nil then Picture.Graphic.Transparent := FTransparent;
   Invalidate;
 end;
 

[lazarus] TAB width

2006-04-03 Thread Andrea Mauri

Hi,
I would like to set the TAB widths to 2 characters. I set it in the 
editor options to 2 I also set the block indent to 2.
But when I press the TAB character in the editor the cursor doesn't move 
of two but it stops when it finds a space in the previous lines.

It's a feature?
How can I set a movement of 2 characters when I press the TAB?
Thanks,
Andrea

--
Andrea Mauri
PhD student - Chemical Sciences
Milano Chemometrics and QSAR Research Group
Department of Environmental Sciences
University of Milano-Bicocca 
P.zza della Scienza, 1

20126 Milano - Italy

Tel: ++39 02 64482801
mailto:[EMAIL PROTECTED]

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Patch for TImage.Transparent

2006-04-03 Thread Micha Nelissen

Tomas Gregorovic wrote:
Hi, this is only small patch which causes to change 
Image.Picture.Graphic.Transparent if Image.Transparent is changed. This 
is same how Delphi behave.


I do not agree. TImage.Transparent is about *drawing* transparently. 
TGraphic.Transparent is about whether a graphic *has* transparency. 
These are separate concepts, and should stay separate.


Micha

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TAB width

2006-04-03 Thread Mattias Gaertner
On Mon, 03 Apr 2006 11:52:57 +0200
Andrea Mauri [EMAIL PROTECTED] wrote:

 Hi,
 I would like to set the TAB widths to 2 characters. I set it in the 
 editor options to 2 I also set the block indent to 2.
 But when I press the TAB character in the editor the cursor doesn't move 
 of two but it stops when it finds a space in the previous lines.
 It's a feature?

Yes. It's called 'smart tabs'. Disable it.


 How can I set a movement of 2 characters when I press the TAB?


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] TAB width

2006-04-03 Thread Vincent Snijders

Andrea Mauri schreef:

Hi,
I would like to set the TAB widths to 2 characters. I set it in the 
editor options to 2 I also set the block indent to 2.
But when I press the TAB character in the editor the cursor doesn't move 
of two but it stops when it finds a space in the previous lines.

It's a feature?


Yes.


How can I set a movement of 2 characters when I press the TAB?


Turn of smart tabs, in the editor options.

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Patch for TImage.Transparent

2006-04-03 Thread Flávio Etrusco
On 4/3/06, Micha Nelissen [EMAIL PROTECTED] wrote:
 Tomas Gregorovic wrote:
  Hi, this is only small patch which causes to change
  Image.Picture.Graphic.Transparent if Image.Transparent is changed. This
  is same how Delphi behave.

 I do not agree. TImage.Transparent is about *drawing* transparently.
 TGraphic.Transparent is about whether a graphic *has* transparency.
 These are separate concepts, and should stay separate.

 Micha

No, TGraphic.Transparent is indeed about how the graphic is to be _drawn_.
It controls e.g. whether the alpha channel of a pixmap should be used
or whether the TransparentColor should be applied to a bitmap.
Reporting availability of transparency or alpha channel information is
specific and down to each TGraphic descendant.

-Flávio

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Unit Output Directory (-FU) option still not working 100%

2006-04-03 Thread Graeme Geldenhuys
Using latest SVN lazarus under Linux.

There is a difference when you specify the directory in (1) Compiler
Options - Unit Output Directory and (2) when you specify the
-FUpath in the Compiler Options - Other - custom Options

I have not specified a Target Filename in Project Options.  (1)
seems to always add the -opath and filename  effectively giving the
same result as the previous -FE option gave.

I normally have a directory structure as follows:

project
   \units--- compile .ppu and .o files live here
   project.exe -- executable and .compiled file lives here
   *.pas--- all source lives here


If I use option (1), my executable ends in the \units directory.
If I use option (2), my executable ends in the project directory,
which is what I want, except if I specified a path in the Project
Options - Target Filename.

Below is the two .compiled files (note the -o path):

 created using option (1)  *
?xml version=1.0?
CONFIG
  Compiler Value=/opt/fpc/bin/ppc386 Date=1133946495/
  Params Value= -S2cgi -OG1 -gl -WG -vewnhi -l
-Fu/opt/lazarus/lcl/units/i386-linux/
-Fu/opt/lazarus/lcl/units/i386-linux/gtk/
-Fu/opt/lazarus/packager/units/i386-linux/ -Fu. -FUunits/
-o/media/sda5/Programming/Tests/ListBox/units/project1 -dLCL -dLCLgtk
project1.lpr/
/CONFIG


 created using option (2)  *
?xml version=1.0?
CONFIG
  Compiler Value=/opt/fpc/bin/ppc386 Date=1133946495/
  Params Value= -S2cgi -OG1 -gl -WG -vewnhi -l
-Fu/opt/lazarus/lcl/units/i386-linux/
-Fu/opt/lazarus/lcl/units/i386-linux/gtk/
-Fu/opt/lazarus/packager/units/i386-linux/ -Fu.
-o/media/sda5/Programming/Tests/ListBox/project1 -FUunits -dLCL
-dLCLgtk project1.lpr/
/CONFIG


Possible Solution:
I believe the ccloDoNotAppendOutFileOption option must be specified
somewhere.  I found at line 2165 in compileroptions.pp a if statement
checking for it, but obviously it is not part of the Flags variable.

Regards,
   - Graeme -



--
There's no place like 127.0.0.1

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Comments about DB2

2006-04-03 Thread Arí Ricardo Ody

At 10:16 2/4/2006, you wrote:

Hi!

I did some tests  too.
My goal is to make a simple form with data controls without any line of
code...


This was my goal with DB2 tables and it doesn't work. At least, I 
can't generate a simple application without code that can INSERT, 
UPDATE and/or DELETE rows of the table without additional code.


I did a test with a similar application using Firebird and everything 
ran OK. But with DB2...


It sounds strange to me the phrase All things above do work, mr. 
Joost. Would I lose a pointer during the conversations?


[ ]

Ricardo

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Comments about DB2

2006-04-03 Thread Joost van der Sluis
On Sun, 2006-04-02 at 23:42 +0200, Sandor Cserhalmi wrote:
  I did some tests  too.
  My goal is to make a simple form with data controls without any line of
  code...
  With tDBF it seems to be fine.
  But with SQLDB components and firebird DB... I can only browsing.
  Insert, update, delete  with data-aware components : dont work.
 
  What is the state of SQLDB components now?
 
  All things above do work.

 Thanks for your positive thinking, but :
 
If I try the IBdemo-20050328 from
 
 http://prdownloads.sourceforge.net/lazarus-ccr/IBdemo-20050328.zip?download
in the DBGrid   insert, update, delete don't working,
and i can't set the SQLQuery.statementType in the object inspector to  
 stSelectForUpdate

I want to point out once again, that I won't answer questions like: 'It
doesn't work - help me.' Without any further information.

Although I think that I know what's going wrong with your program. I'm
not gonna guess it. If I guess wrong, i'm just wasting my time. You
asked me what the status is, I answered that question.

And that you can't get it to work, isn't my problem as long as I'm not
sure that it's a bug instead of a lazy user.

The example that you've found won't work. But I guess that when that
example was made, sqldb was still read-only.

JoJo,
  Joost.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Comments about DB2

2006-04-03 Thread Joost van der Sluis
 I did some tests  too.
 My goal is to make a simple form with data controls without any line of
 code...
 
 This was my goal with DB2 tables and it doesn't work. At least, I 
 can't generate a simple application without code that can INSERT, 
 UPDATE and/or DELETE rows of the table without additional code.

 I did a test with a similar application using Firebird and everything 
 ran OK. But with DB2...

 It sounds strange to me the phrase All things above do work, mr. 
 Joost. Would I lose a pointer during the conversations?

DB2 is another story as the other natively supported databases (mysql
4.0, 4.1, 5.0, Firebird, PostgreSQL and Oracle). The ODBC-connection is
not as powerfull as the others. And in your case, you were using a
datatype that isn't supported. Obviously ODBC can handle it, or else it
also woudn't work on other ODBC applications, but I don't have any idea
how to implement that. But I thought that some others (Bram - the author
of the ODBC-connection) was looking at it?

JoJo,
  Joost.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] OnExit, OnDblClick, Close with TDBGrid.

2006-04-03 Thread Alexander Todorov
On 3/30/06, Alexander Todorov [EMAIL PROTECTED] wrote:
 On 3/30/06, Matthijs Willemstein [EMAIL PROTECTED] wrote:
  Sorry, for the topposting, but I'm on a Windows box right know. :(
  You never know what happens in event driven programs. So if the doubleclick
  event closes the form, it can happen that the control loses focus and so the
  OnExit is triggered.
  There is a simple solution to this and that is define a private property of
  your form which you send to true in the OnDoubleClick event. In the OnExit
  event you check this property and if it is true you leave the event method.
 
  Matthijs

 OK that's correct. It is no problem for my application to do so. The
 question is that it does not happen in Delphi. Tested with Delphi 7.
 If this is a feature not a bug it is breaking Delphi compatibility.


I have tested this under Windows XP with the new Lazarus 0.9.14. The
behaviour is the same. When the form is closed the OnExit event for
the TDBGrid is fired.

@Lazarus team :
Is this a bug or a feature? Should I report it in mantis?

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Linking error

2006-04-03 Thread Vincent Snijders

Alex du Plessis schreef:

Hi

Could someone point me in the right direction please.  I have added the 
unit pgcl (a postgres access unit) to a project which built and compiled 
perfectly without any problems. Now when I build the project , a message 
error while linking occurs and the project compilation does not 
complete.  Since there are no other messages that could point me in the 
direction of where to look for the problem - I have no idea as to how to 
sove this.


Anybody with any ideas?



Lot's of ideas / questions, I don't know if it helps.

What fpc version are you using?

Does it compile again, if you remove the unit?

If you copy all (including hidden) messages from the messages view, does that give 
more information?


Can you delete the existing executable (from a previous build attempt)?

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Linking error

2006-04-03 Thread Alex du Plessis



Vincent Snijders wrote:

Alex du Plessis schreef:

Hi

Could someone point me in the right direction please.  I have added 
the unit pgcl (a postgres access unit) to a project which built and 
compiled perfectly without any problems. Now when I build the project 
, a message error while linking occurs and the project compilation 
does not complete.  Since there are no other messages that could point 
me in the direction of where to look for the problem - I have no idea 
as to how to sove this.


Anybody with any ideas?



Lot's of ideas / questions, I don't know if it helps.

What fpc version are you using?

Does it compile again, if you remove the unit?

If you copy all (including hidden) messages from the messages view, does 
that give more information?


Can you delete the existing executable (from a previous build attempt)?

Vincent


Your questions certainly pointed me in the right direction and here was 
the problem:


Unit pgcl uses postgres;
unit postgres {$LINKLIB pq} and uses dlllst
unit dlllst also {$LINKLIB pq}

However under Windows it should be {$LINKLIB libpq} in both files

Also make sure the compiler can find libpq.dll (adding the directory to 
the compiler search path)


Thanks for the advice


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives




_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Linking error

2006-04-03 Thread L505
 Hi

 Could someone point me in the right direction please.  I have added the
 unit pgcl (a postgres access unit) to a project which built and compiled
 perfectly without any problems. Now when I build the project , a message
 error while linking occurs and the project compilation does not
 complete.  Since there are no other messages that could point me in the
 direction of where to look for the problem - I have no idea as to how to
 sove this.


Use the command line to find out.
fpc project1.lpr -options


Lazarus really needs to show these errors, I think it skips part of the error
and only reads some of it (the non-important part in this case). It won't tell
you that as.exe or as is missing, and other things.
Or, maybe TProcess is not capturing all the messages, or just capturing the very
last error message when in fact we need about 3 lines up.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] OnExit, OnDblClick, Close with TDBGrid.

2006-04-03 Thread Mattias Gaertner
On Mon, 03 Apr 2006 16:26:22 +0200
Micha Nelissen [EMAIL PROTECTED] wrote:

 Alexander Todorov wrote:
  I have tested this under Windows XP with the new Lazarus 0.9.14. The
  behaviour is the same. When the form is closed the OnExit event for
  the TDBGrid is fired.
  
  @Lazarus team :
  Is this a bug or a feature? Should I report it in mantis?
 
 Report it as a bug. It depends a little on what the source of the 
 problem is, whether it's easily fixable.

How is OnExit defined?
I would think it is 'loosing focus'. Then it should fire.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Please Help!!!

2006-04-03 Thread Vincent Snijders

Roberto Antonio Berrospe Machin wrote:

Hi.
I used to develop with LCL and now im going to start again; but even  
with a simple test it dont work anymore for me? here's atached the  test 
im doing, the way i used to develop, i need something like that  coding 
style to not to change all my sources... is that way not  posible anymore?


The error i get is:

Free Pascal Compiler version 2.1.1 [2006/03/30] for powerpc
Copyright (c) 1993-2005 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling tests.pas
tests.pas(12,2) Note: APPTYPE is not supported by the target OS
tests.pas(50,23) Error: Incompatible types: got Pointer expected  
procedure variable type of procedure(TObject) of object;StdCall

tests.pas(70) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /Users/MetalFishX/Temp/BTP/bin/ppcppc returned an error  exitcode 
(normal if you did not specify a source file to be compiled)


Is there a way to solve that?



Maybe this helps:
http://www.lazarus.freepascal.org/list_archives/lazarus/msg12821.html

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Lazarus 0.9.14 released

2006-04-03 Thread Mattias Gaertner

The Lazarus team is glad to announce the 0.9.14 release. This release is
based on fpc 2.0.2.

This release can be downloaded from the sourceforge download page:
http://sourceforge.net/project/showfiles.php?group_id=89339

For those poeple, who already downloaded in the last days: The 0.9.14-0
contains a bug. Please download 0.9.14-1.


Detailed list of changes:

removed fpc 2.0.0 compatibility workarounds. The IDE supports
  fpc 2.0.0, but you need at least 2.0.2 to compile Lazarus.
removed TSize from LCLType, it it is defined in the FPC unit 'types'
IDE now tries to save nearly all project files relative in .lpi
compiler options of projects and packages now minimize
  search path on loading
removed TCanvas.BrushCopy, because it was not implemented.
added filter for 'Parameter Sender not used' hint
removed references to ruwin translations
if a package defines UseCThreads in its uses options, the
  cthreads unit will be add to the uses clause of new projects and
  applications and to lazarus itself.

added cwstring for unix platforms for UTF8 conversion to
  system character set
added simple check if system characterset is UTF8 to skip the
  conversion step
added UTF8 conversion functions to cp1251 and koi8-r,
  compile with -dMultiLocale  from Vasily Volchenko
removed lazcwstring.pas, widestring support in fpc 2.0.2 is good enough

wince interface: TCustomEdit from Felipe
qt4 interface: TBitmap, TComboBox, TApplication, TCustomForm,
  TCustomButton, TTimer, TCheckBox, TRadioButton, TStaticText
  from Felipe

added source editor popup menu item 'copy filename'
fixes for 64 bit platforms
added support for compiling for Solaris from Peter Vreman
added sql highlighter to IDE
added TSynHighlighterAny
added keywords to TSynPasSyn: package, requires, contains
improved IDE source position jumping when eoScrollPastEOL is disabled
added package info in install packages dialog from Tomas Gregorovic
added TMenuItem.IsLine from Graeme
codetools: implemented parsing 'requires' and 'contains' sections
codetools: Added directory cache. This accelerates mass searches.
FCL TComponent.ValidateRename is case sensitive. Added case insensitive
  check in TDesigner, now it does not allow Button1 and BUTTON1.
added TWinControl.SelectFirst
added code macros (see Environment - Code Templates): date, time, datetime
move directory 'debian' to top level: easier for building packages
finished implementation of TWinControl.Repaint (fixes issue 1890)
added GraphType aliases for Delphi compatibility
calling TComboBox.OnSelect when ItemIndex changes
moved EndQuerySession and EndSession handling
  after calling default window proc
published TListBox.OnShowHint
find dialog: added automatic ssoSelectedOnly
  if selection contains several lines
using combobox autotext for findreplace dialog
implemented cbactRetainPrefixCase for TComboBox
implemented find declaration of Object Inspector property popupmenu
  item and context help for properties
implemented editor option right margin
implemented clearing messages on closing project
added messages 'clear' menu item
added wsMinimized check to TCustomForm.ShowOnTop
added a warning on saving a package for missing files
added TDynamicDataQueue in lcl/dynqueue.pas
  - a dynamic queue to push, pop and top arbitrary data
implemented TGtkWidgetSet.SetWidgetFont for gtk2
added example demonstrating how to stream components
win32 interface: implemented copying bitmap to clipboard
implemented updating line numbers of messages on inserting/deleting lines
added multithreading example
implemented Quick Fix system and added example for IDE QuickFix
  item to fix 'Sender not used' items
reduced libc dependencies
published TComboBox.AutoComplete (issue 1706)
added lazarus.lpi - a project info file for the IDE.

delphi conversion tools:
 - added Delphi package conversion tool
 - moved conversion functions to the new 'converter' directory.
 - last delphi conversion project/package/unit is now remembered
 - multiple calls are now possible. That means, you can now start
   the Delphi project/package/unit converter, abort it at any time,
   fix some things manually and start the converter again. This way,
   even big projects/packages can be converted.
 - implemented reading Delphi .cfg and .dof files
 - automatic fixing include filenames and uses section names

and several hundred bug fixes and minor changes.


Mattias Gaertner

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] OnExit, OnDblClick, Close with TDBGrid.

2006-04-03 Thread Micha Nelissen
On Mon, 3 Apr 2006 19:27:00 +0200
Mattias Gaertner [EMAIL PROTECTED] wrote:

   @Lazarus team :
   Is this a bug or a feature? Should I report it in mantis?
  
  Report it as a bug. It depends a little on what the source of the 
  problem is, whether it's easily fixable.
 
 How is OnExit defined?
 I would think it is 'loosing focus'. Then it should fire.

Focus is specific per window, I'd say. Also, when closing a window, you can
handle the OnHide or OnClose event. It's usually better fire events as
little as possible, rather than always (as they 'lose' meaning then).

Do you want OnExit to fire when switching to another window, do you ? Does
delphi do so ?

Micha

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] OnExit, OnDblClick, Close with TDBGrid.

2006-04-03 Thread Mattias Gaertner
On Mon, 3 Apr 2006 20:04:30 +0200
Micha Nelissen [EMAIL PROTECTED] wrote:

 On Mon, 3 Apr 2006 19:27:00 +0200
 Mattias Gaertner [EMAIL PROTECTED] wrote:
 
@Lazarus team :
Is this a bug or a feature? Should I report it in mantis?
   
   Report it as a bug. It depends a little on what the source of the 
   problem is, whether it's easily fixable.
  
  How is OnExit defined?
  I would think it is 'loosing focus'. Then it should fire.
 
 Focus is specific per window, I'd say. Also, when closing a window, you
 can handle the OnHide or OnClose event. It's usually better fire events as
 little as possible, rather than always (as they 'lose' meaning then).
 
 Do you want OnExit to fire when switching to another window, do you ?

Yes. What other event tells me, that the user finished editing this control?


 Does delphi do so ?


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Please Help!!!

2006-04-03 Thread Roberto Antonio Berrospe Machin

Thanks for the answers...
Its working now, i have needed to add the button procedure to the  
class, under public worked well... Also, i was having problems, but  
then i saw that it was needed to specify (Sender:TObject) Then  
worked... I've used:


fpc -Fu/usr/local/share/lazarus/lcl/units/powerpc-darwin -Fu/usr/ 
local/share/lazarus/lcl/units/powerpc-darwin/gtk -Fl/sw/lib -Fl/usr/ 
X11R6/lib  tests.pas


And compiled, and runs, but the button dont shows... So what i did  
was add:


BUTTONS1 := TButton.Create(FORM);

(FORM is the variable i've created for FORMCLASS... )

Compiles but button still dont exist..

Then at last looking on lazarus, button events/methods etc.. i sae  
Parent.. then wrote after Create(Self)


BUTTONS1 := TButton.Create(Self);
BUTTONS1.Parent:=FORM;

And after that, everything worked fine, and the button is there


After all of this, i did a test, to see if i can compile ussing  
Carbon, (i have the lcl compiled and ive tested on lazarus with  
sucess for textbox, buttons and checkboxes) and well, used this:


fpc -Fu/usr/local/share/lazarus/lcl/units/powerpc-darwin -Fu/usr/ 
local/share/lazarus/lcl/units/powerpc-darwin/carbon -Fl/sw/lib -Fl/ 
usr/X11R6/lib  tests.pas


Just changed the /units/powerpc-darwin/gtk to /units/powerpc-darwin/ 
carbon and well i got these errors


Linking tests
/usr/bin/ld: Undefined symbols:
_ActivateWindow
_CallNextEventHandler
_CreateEvent
_DisposeEventHandlerUPP
_GetApplicationEventTarget
_GetCurrentEventTime
_GetCurrentKeyModifiers
_GetEventClass
_GetEventDispatcherTarget
_GetEventKind
_GetEventParameter
_GetGlobalMouse
_GetKeyboardFocus
_GetMainEventQueue
_GetNextWindow
_GetWindowList
_InstallEventHandler
_IsWindowActive
_NewEventHandlerUPP
_PostEventToQueue
_QuitApplicationEventLoop
_ReceiveNextEvent
_ReleaseEvent
_RemoveEventHandler
_RunApplicationEventLoop
_SendEventToEventTarget
_SetEventParameter
_YieldToAnyThread
_GetControlEventTarget
_GetWindowEventTarget
_CFRelease
_CFStringCreateWithCString
_CreatePushButtonControl
_CFStringGetCString
_CFStringGetCStringPtr
_CFStringGetLength
_CopyControlTitleAsCFString
_DisposeControl
_HIViewGetBounds
_SetControlBounds
_SetControlTitleWithCFString
_SetWindowBounds
_CreateNewWindow
_DisposeWindow
_SetWindowResizeLimits
_SetWindowTitleWithCFString
_ShowWindow
_CreateCheckBoxControl
_CreateEditUnicodeTextControl
_GetControl32BitValue
_GetControlData
_SetControl32BitValue
_SetControlData
_GetControlProperty
_GetWindowProperty
_IsValidControlHandle
_RemoveControlProperty
_RemoveWindowProperty
_SetControlProperty
_SetWindowProperty
_DisposeControlActionUPP
_GetCurrentEventButtonState
_GetRootControl
_GetWindowBounds
_HIViewConvertPoint
_HIViewGetSuperview
_HIViewGetViewForMouseEvent
_HIViewGetWindow
_NewControlActionUPP
tests.pas(71,2) Error: Error while linking
Error: /usr/local/bin/ppcppc returned an error exitcode (normal if  
you did not specify a source file to be compiled)



What this can be?


Thanks for all your help guys.


Roberto.



tests.pas
Description: Binary data


Re: [lazarus] Comments about DB2

2006-04-03 Thread Bram Kuijvenhoven

Joost van der Sluis wrote:
It sounds strange to me the phrase All things above do work, mr. 
Joost. Would I lose a pointer during the conversations?


DB2 is another story as the other natively supported databases (mysql
4.0, 4.1, 5.0, Firebird, PostgreSQL and Oracle). The ODBC-connection is
not as powerfull as the others. And in your case, you were using a
datatype that isn't supported. Obviously ODBC can handle it, or else it
also woudn't work on other ODBC applications, but I don't have any idea
how to implement that. But I thought that some others (Bram - the author
of the ODBC-connection) was looking at it?


Yes, I will take a look at the possibilities to accurately translate the DB2 
TIMESTAMP through both ODBC and TField's capabilities. (add here: and 
investigate the need to implement the TTimeStamp descendant)

At the moment I'm very busy and I don't have much time improving the 
ODBCConnection, so it might take some time. There are some features on my 
wish-list, and I will implement them in time. I don't need all functionality 
for the application I primarily created the ODBCConnection for, but I'd like to 
extend the component such that other people can also use it for other purposes. 
I'm happy with any feedback about things not working, or feature requests, but 
I can't promise when I'll have time to implement something new.

BTW, I will try to implement reading BLOB fields within a few weeks. There only 
is a small problem with that at the moment: I need to implement in 
TODBCConnection the function

 function CreateBlobStream(Field:TField; Mode:TBlobStreamMode):TStream;

However, I need the TSQLHandle here (for the ODBC API call), not the 
TSQLConnection, where it is a method of. I think the Handle should be passed as 
an additional parameter. Or is there some way to (correctly) get the TSQLHandle 
from the Field parameter?

Another thought on the problems Arí has with update queries and 
TODBCConnection: as I need only read access, I never implemented 
UpdateIndexDefs; might that be required?

Regards,

Bram

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


[lazarus] Destiny of Ctl3D property

2006-04-03 Thread Luiz Americo Pereira Camara

As cited in the source code, the Ctl3D property (TControl) does nothing
and even in Delphi is deprecated. Regarding this i have some questions:

- It will be removed from LCL?
- If so, it's better to remove now or after 1.0?

If must be removed i can prepare a patch.

Luiz

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Please Help!!!

2006-04-03 Thread Roberto Antonio Berrospe Machin
Ok got it.. sorry to bother with my messages.. wel i think we all can  
get good idea on how to hardcore with lcl :)

i got Carbon compiling by specifying -k-framework -kcarbon

fpc -Fu/usr/local/share/lazarus/lcl/units/powerpc-darwin -Fu/usr/ 
local/share/lazarus/lcl/units/powerpc-darwin/carbon -Fl/sw/lib -Fl/ 
usr/X11R6/lib -k-framework -kcarbon  tests.pas


And i get the native mac app with the form and button working well..  
i've needed to run createmacapplication


createmacapplication tests

and then

ln -s ../../../tests tests.app/Contents/MacOS/tests

and its running well on finder... :)

Well i hope the carbon developer continue this good job and same with  
lazarus team... (in my case, ill try to get in dept again after long  
time without programing in pascal) ;)



Thanks for all.


Roberto.


_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Please Help!!!

2006-04-03 Thread Roberto Antonio Berrospe Machin

Hi Vincent..
Yeah looks good, but 100% under lazarus ide, i did the hard way :)
Also, there're something about createmacapplication...

Its not needed to use ln... Mac programer usually will distribute  
their applications everything in the same .app application, i mean,  
the applications are inside a folder with the extension .app and with  
an structure that createmacapplication creates; but, then the  
tutorial says you should use ls ive tested; it creates a symbolic  
link inside the package.. but the app is still not there, so if you  
send to some one or want to distribute the app, you will have a link  
inside instead the binary file as usual the mac apps does have  
inside.. so the right way is just taking the binary and copy / move  
it to apppname.app/Contents/MacOS/appnamebinary and thats it you  
can distribute your app. I think createmacapplication can be modified  
to copy the binary to the right place.


Just that, the rest is ok for my opinion.. but also, can be good to  
have the handly way, ussing just the terminal :)



Thanks.

Roberto.


El 03/04/2006, a las 04:58 PM, Vincent Snijders escribió:


Roberto Antonio Berrospe Machin wrote:
Ok got it.. sorry to bother with my messages.. wel i think we all  
can  get good idea on how to hardcore with lcl :)

i got Carbon compiling by specifying -k-framework -kcarbon
fpc -Fu/usr/local/share/lazarus/lcl/units/powerpc-darwin -Fu/usr/  
local/share/lazarus/lcl/units/powerpc-darwin/carbon -Fl/sw/lib - 
Fl/ usr/X11R6/lib -k-framework -kcarbon  tests.pas
And i get the native mac app with the form and button working  
well..  i've needed to run createmacapplication

createmacapplication tests
and then
ln -s ../../../tests tests.app/Contents/MacOS/tests
and its running well on finder... :)
Well i hope the carbon developer continue this good job and same  
with  lazarus team... (in my case, ill try to get in dept again  
after long  time without programing in pascal) ;)


I think most, if not all, of this documented on http:// 
wiki.lazarus.freepascal.org/index.php/Carbon_Interface


Can you check the accuracy of that page?

Vincent

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives



Roberto Antonio Berrospe Machin
Senior Programer / Developer
Berlin Productions, Uruguay.
Tel: 099733303
International: (+598) 99733303



_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Comments about DB2

2006-04-03 Thread Joost van der Sluis
 BTW, I will try to implement reading BLOB fields 
 within a few weeks. There only is a small 
 problem with that at the moment: I need to 
 implement in TODBCConnection the function
 
   function CreateBlobStream(Field:TField; Mode:TBlobStreamMode):TStream;
 
 However, I need the TSQLHandle here (for the 
 ODBC API call), not the TSQLConnection, where it 
 is a method of. I think the Handle should be 
 passed as an additional parameter. Or is there 
 some way to (correctly) get the TSQLHandle from the Field parameter?
 
 Based on my experience and lot of years in the 
 field I'd dare to say that TIMESTAMP is most 
 used than BLOB and GRAPHICS.  At least if we are 
 speaking about business applications(like banks, credit card operators, etc)

Sure, but what I understood from Bram, some other Timestamp/Datetime
fields were working, only this particular sort of Timestamp isn't.

 Another thought on the problems Arí has with 
 update queries and TODBCConnection: as I need 
 only read access, I never implemented UpdateIndexDefs; might that be 
 required?
 
 UpdateIndexDefs? What is the function of such 
 method? Since data base manager ever keep the 
 index(es) up-to-date and it has the index(es) 
 description in its areas, I can't imagine...

To let modifications things work automatically, it is needed. This
function updates the information about the indexes on the table. From
this information it derrives what the primary key is. And the where part
of the update/insert/delete statements is depending on the primary
key... But you could also 'manually' add all fields-definitions, and
then set the field that should be used in the where-clause of the sql-
statement.

 I would like to remember that it's so important 
 that DB2 keep the TIMESTAMP in the format with 6 
 digits of fraction of second. BTW I thing and 
 insist that a return of string [26] will be more 
 easy(I think) and clear. People can do the 
 conversions in the application program.

I'm not sure about that. The developer is asking for a Date/time, so
he'll expect that he'll get a Date/time. 
If you need a string from DB2, I would use a cast in the sql-statement.


JoJo,
  Joost.

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Destiny of Ctl3D property

2006-04-03 Thread Marc Weustink

Luiz Americo Pereira Camara wrote:

As cited in the source code, the Ctl3D property (TControl) does nothing
and even in Delphi is deprecated. Regarding this i have some questions:

- It will be removed from LCL?
- If so, it's better to remove now or after 1.0?

If must be removed i can prepare a patch.


Ctl3d, is in delhpi already obslolete, but still there for old 
compatebilitiy.
IMO, if we have a good delphi import tool, we don't need to cary that 
obsolete load.


Marc

_
To unsubscribe: mail [EMAIL PROTECTED] with
   unsubscribe as the Subject
  archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Please Help!!!

2006-04-03 Thread Mattias Gaertner
On Mon, 3 Apr 2006 17:27:20 -0300
Roberto Antonio Berrospe Machin [EMAIL PROTECTED] wrote:

 Hi Vincent..
 Yeah looks good, but 100% under lazarus ide, i did the hard way :)
 Also, there're something about createmacapplication...
 
 Its not needed to use ln... Mac programer usually will distribute  
 their applications everything in the same .app application, i mean,  
 the applications are inside a folder with the extension .app and with  
 an structure that createmacapplication creates; but, then the  
 tutorial says you should use ls ive tested; it creates a symbolic  
 link inside the package.. but the app is still not there, so if you  
 send to some one or want to distribute the app, you will have a link  
 inside instead the binary file as usual the mac apps does have  
 inside.. so the right way is just taking the binary and copy / move  
 it to apppname.app/Contents/MacOS/appnamebinary and thats it you  
 can distribute your app. I think createmacapplication can be modified  
 to copy the binary to the right place.
 
 Just that, the rest is ok for my opinion.. but also, can be good to  
 have the handly way, ussing just the terminal :)

The link is used for these reasons:
- The compilation is the same under all platforms
- the linker does not get a long path. As I tested, I had problems with too
many parameters, so they were cut off.


Mattias


 
 
 Thanks.
 
 Roberto.
 
 
 El 03/04/2006, a las 04:58 PM, Vincent Snijders escribió:
 
  Roberto Antonio Berrospe Machin wrote:
  Ok got it.. sorry to bother with my messages.. wel i think we all  
  can  get good idea on how to hardcore with lcl :)
  i got Carbon compiling by specifying -k-framework -kcarbon
  fpc -Fu/usr/local/share/lazarus/lcl/units/powerpc-darwin -Fu/usr/  
  local/share/lazarus/lcl/units/powerpc-darwin/carbon -Fl/sw/lib - 
  Fl/ usr/X11R6/lib -k-framework -kcarbon  tests.pas
  And i get the native mac app with the form and button working  
  well..  i've needed to run createmacapplication
  createmacapplication tests
  and then
  ln -s ../../../tests tests.app/Contents/MacOS/tests
  and its running well on finder... :)
  Well i hope the carbon developer continue this good job and same  
  with  lazarus team... (in my case, ill try to get in dept again  
  after long  time without programing in pascal) ;)
 
  I think most, if not all, of this documented on http:// 
  wiki.lazarus.freepascal.org/index.php/Carbon_Interface
 
  Can you check the accuracy of that page?
 
  Vincent
 
  _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives
 
 
 Roberto Antonio Berrospe Machin
 Senior Programer / Developer
 Berlin Productions, Uruguay.
 Tel: 099733303
 International: (+598) 99733303
 
 
 
 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Linking error

2006-04-03 Thread Mattias Gaertner
On Mon, 03 Apr 2006 10:45:09 -0600
L505 [EMAIL PROTECTED] wrote:

  Hi
 
  Could someone point me in the right direction please.  I have added the
  unit pgcl (a postgres access unit) to a project which built and compiled
  perfectly without any problems. Now when I build the project , a message
  error while linking occurs and the project compilation does not
  complete.  Since there are no other messages that could point me in the
  direction of where to look for the problem - I have no idea as to how to
  sove this.
 
 
 Use the command line to find out.
 fpc project1.lpr -options
 
 
 Lazarus really needs to show these errors, I think it skips part of the
 error and only reads some of it (the non-important part in this case). It
 won't tell you that as.exe or as is missing, and other things.
 Or, maybe TProcess is not capturing all the messages, or just capturing
 the very last error message when in fact we need about 3 lines up.

FPC prints the linker errors followed by 'error while linking'. That's why
the IDE prints all messages in front of such a message.
Can you give me an example of skipped important messages?


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Unit Output Directory (-FU) option still not working 100%

2006-04-03 Thread Mattias Gaertner
On Mon, 3 Apr 2006 12:57:55 +0200
Graeme Geldenhuys [EMAIL PROTECTED] wrote:

 Using latest SVN lazarus under Linux.
 
 There is a difference when you specify the directory in (1) Compiler
 Options - Unit Output Directory and (2) when you specify the
 -FUpath in the Compiler Options - Other - custom Options

Correct. Order matters.

 
 I have not specified a Target Filename in Project Options.  (1)
 seems to always add the -opath and filename  effectively giving the
 same result as the previous -FE option gave.
 
 I normally have a directory structure as follows:
 
 project
\units--- compile .ppu and .o files live here
project.exe -- executable and .compiled file lives here
*.pas--- all source lives here
 
 
 If I use option (1), my executable ends in the \units directory.

Correct. If you do not specify a target filename, the IDE puts everything
into the output directory.
To separate the output, specify separate output files/dirs.


 If I use option (2), my executable ends in the project directory,

Ok. Custom options are up to the expert programmer.


 which is what I want, except if I specified a path in the Project
 Options - Target Filename.
 
 Below is the two .compiled files (note the -o path):
 
  created using option (1)  *
 ?xml version=1.0?
 CONFIG
   Compiler Value=/opt/fpc/bin/ppc386 Date=1133946495/
   Params Value= -S2cgi -OG1 -gl -WG -vewnhi -l
 -Fu/opt/lazarus/lcl/units/i386-linux/
 -Fu/opt/lazarus/lcl/units/i386-linux/gtk/
 -Fu/opt/lazarus/packager/units/i386-linux/ -Fu. -FUunits/
 -o/media/sda5/Programming/Tests/ListBox/units/project1 -dLCL -dLCLgtk
 project1.lpr/
 /CONFIG
 
 
  created using option (2)  *
 ?xml version=1.0?
 CONFIG
   Compiler Value=/opt/fpc/bin/ppc386 Date=1133946495/
   Params Value= -S2cgi -OG1 -gl -WG -vewnhi -l
 -Fu/opt/lazarus/lcl/units/i386-linux/
 -Fu/opt/lazarus/lcl/units/i386-linux/gtk/
 -Fu/opt/lazarus/packager/units/i386-linux/ -Fu.
 -o/media/sda5/Programming/Tests/ListBox/project1 -FUunits -dLCL
 -dLCLgtk project1.lpr/
 /CONFIG
 
 
 Possible Solution:
 I believe the ccloDoNotAppendOutFileOption option must be specified
 somewhere.  I found at line 2165 in compileroptions.pp a if statement
 checking for it, but obviously it is not part of the Flags variable.


Mattias

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Linking error

2006-04-03 Thread L505

   Hi
  
   Could someone point me in the right direction please.  I have added the
   unit pgcl (a postgres access unit) to a project which built and compiled
   perfectly without any problems. Now when I build the project , a message
   error while linking occurs and the project compilation does not
   complete.  Since there are no other messages that could point me in the
   direction of where to look for the problem - I have no idea as to how to
   sove this.
 
 
  Use the command line to find out.
  fpc project1.lpr -options
 
 
  Lazarus really needs to show these errors, I think it skips part of the
  error and only reads some of it (the non-important part in this case). It
  won't tell you that as.exe or as is missing, and other things.
  Or, maybe TProcess is not capturing all the messages, or just capturing
  the very last error message when in fact we need about 3 lines up.

 FPC prints the linker errors followed by 'error while linking'. That's why
 the IDE prints all messages in front of such a message.
 Can you give me an example of skipped important messages?


 Mattias


I sometimes only get:
  error while linking

But no other information, because lazarus pins in on that line only. Or is it
FPC that is doing that when you don't Build All?

Or copy all messages to clipboard maybe solves my problem in some cases?

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Gtk 1.x theme

2006-04-03 Thread wfifi
here: http://www.gnome-look.org/
Can find more gtk themes.

On 4/3/06, Graeme Geldenhuys [EMAIL PROTECTED] wrote:
 Hi,

 I know this is not directly related to Lazarus, but can anybody
 recommend a good Gtk 1.x theme I can use under Linux and Lazarus.  I
 really don't like the Default (no theme) theme.

 I just tried the Gorilla theme. It makes the buttons and scollbars
 look great, but ToolButtons disappear (eg: the buttons in Lazarus next
 to the Component Palette).  The mouse-over on flat buttons don't seem
 to work either.

 I don't need anything flashy, just usable.

 Regards,
   - Graeme -

 --
 There's no place like 127.0.0.1

 _
  To unsubscribe: mail [EMAIL PROTECTED] with
 unsubscribe as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives


_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives


Re: [lazarus] Unit Output Directory (-FU) option still not working 100%

2006-04-03 Thread Graeme Geldenhuys
On 04/04/06, Mattias Gaertner [EMAIL PROTECTED] wrote:
  If I use option (1), my executable ends in the \units directory.

 Correct. If you do not specify a target filename, the IDE puts everything
 into the output directory.
 To separate the output, specify separate output files/dirs.


  If I use option (2), my executable ends in the project directory,

 Ok. Custom options are up to the expert programmer.


This still makes no sense.  Both options are using the same compiler
option -FUpath so why is it okay for them to have dirrenent results?

At the moment option (1) works exactly like the compiler option
-FEpath putting all compiled units and executable in the path
directory.  Surely there should be a difference to when you use -FU
compared to -FE?

Regards,
  - Graeme -


--
There's no place like 127.0.0.1

_
 To unsubscribe: mail [EMAIL PROTECTED] with
unsubscribe as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives