[lazarus] Getting a svn update while Packages are used - Lazarus undo's the changes.

2007-12-03 Thread Graeme Geldenhuys
Hi, I've noticed this a few times now and was wondering if it could be fixed or improved on (and if I should report it as a bug or feature request). In summary, changes to packages get undone while Lazarus is open! Lets use an example to explain. If I have Lazarus open and loaded one of my

Re: [lazarus] SQLite 3 datetime and timestamp

2007-12-03 Thread Luca Olivetti
En/na Luiz Americo Pereira Camara ha escrit: - Try sqlitepass and sqldb/sqlite3. I vaguely remenber of sqlitepass to support timestamp. I don't know about sqldb. Note that sqlitepass is windows only (at least it was last time I looked). You can also use zeos, it is cross platform but I didn't

Re: [lazarus] SQLite 3 datetime and timestamp

2007-12-03 Thread Roberto Padovani
Hi Luiz, first of all, thanks a lot for the good job you did with sqlite for us all! So, now my app can understand a timestamp field as a TDateTime instead of a string... .. [removed] ... Here's how sqlite works (for good and bad): - You can create tables with any field type: TIMESTAMP,

Re: [lazarus] SQLite 3 datetime and timestamp

2007-12-03 Thread Roberto Padovani
Now, about assumptions. in sqlite3ds there is the assumption that BOOLEAN fields are stored as 1 or 0. In fact, to recover a db that had TRUE and FALSE, I made a new class where I changed ftBool to fString. In this way I could read them, parse them and then write them back as 1 or 0. With the

[lazarus] Patch for Forms in Forms or MDI

2007-12-03 Thread Guadagnini David
This patch fixes the problem that if I put a form in another it is locked. If You remember if I have two forms and write: Form2.Parent := Panel1; Form2.Align := alClient; I have form2 into the Panel1 (in Form1) but the form1 it's locked Index: customform.inc

Re: [lazarus] SQLite 3 datetime and timestamp

2007-12-03 Thread Luca Olivetti
En/na Roberto Padovani ha escrit: When the project I'm working on is finished, I'll strip everything from the source code and only leave a detailed tutorial for using sqlite without visual components. FWIW to do that you can also use sqlite3 directly (or with a thin wrapper), you don't have

Re: [lazarus] Movable Tabs on Code Editor

2007-12-03 Thread Mattias Gaertner
On Sun, 02 Dec 2007 18:16:05 -0500 Lee Jenkins [EMAIL PROTECTED] wrote: [...] And not to be greedy, but a Close All Other Tabs item on the short cut menu for tabs would be very nice as well. This function is currently somewhat hidden: Some widgetset have close buttons on the tabs (e.g. gtk).

Re: [lazarus] Startlazarus.exe now useless, or may be even harmful !?

2007-12-03 Thread Dave Parsons
On Fri, 30 Nov 2007 13:58:11 +0100, Vincent Snijders wrote: You should not build the starter from the IDE, if you started lazarus with startlazarus. Out of curiosity, what is the difference between lazarus startlazarus? They both seem to do the same thing to me. -- Cheers, Dave

Re: [lazarus] Getting a svn update while Packages are used - Lazarus undo's the changes.

2007-12-03 Thread Mattias Gaertner
On Mon, 3 Dec 2007 10:13:22 +0200 Graeme Geldenhuys [EMAIL PROTECTED] wrote: Hi, I've noticed this a few times now and was wondering if it could be fixed or improved on (and if I should report it as a bug or feature request). In summary, changes to packages get undone while Lazarus is

Re: [lazarus] Getting a svn update while Packages are used - Lazarus undo's the changes.

2007-12-03 Thread Graeme Geldenhuys
On 03/12/2007, Mattias Gaertner [EMAIL PROTECTED] wrote: At the moment the following files are not auto reloaded when changed on disk: lpk, lpi and the IDE config files Please create a feature request. Thanks, done. Regards, - Graeme - ___

Re: [lazarus] Startlazarus.exe now useless, or may be even harmful !?

2007-12-03 Thread Andrey Gusev
* Vincent Snijders [EMAIL PROTECTED] [Fri, 30 Nov 2007 13:58:11 +0100]: Andrey Gusev schreef: Lazarus 13085. I try to rebuild lazarus from IDE itself. Got: --- C:\Works-FPC\lazarus-snap\ide\startlazarus.lpr(51,1) Error: Can't create object file: ..\startlazarus.exe

Re: [lazarus] Startlazarus.exe now useless, or may be even harmful !?

2007-12-03 Thread Vincent Snijders
Andrey Gusev schreef: * Vincent Snijders [EMAIL PROTECTED] [Fri, 30 Nov 2007 13:58:11 +0100]: Andrey Gusev schreef: Lazarus 13085. I try to rebuild lazarus from IDE itself. Got: --- C:\Works-FPC\lazarus-snap\ide\startlazarus.lpr(51,1) Error: Can't create object file: ..\startlazarus.exe

Re: [lazarus] Startlazarus.exe now useless, or may be even harmful !?

2007-12-03 Thread Mattias Gaertner
On Mon, 03 Dec 2007 11:37:54 +0100 (CET) Dave Parsons [EMAIL PROTECTED] wrote: On Fri, 30 Nov 2007 13:58:11 +0100, Vincent Snijders wrote: You should not build the starter from the IDE, if you started lazarus with startlazarus. Out of curiosity, what is the difference between lazarus

[lazarus] Lazarus on a Windows without admin privileges

2007-12-03 Thread Damien Gerard
When running the windows installer, the libqt4intf.dll can not be installed in the system32 folder. It is a problem for all windows accounts without admin privileges. -- Damien Gerard [EMAIL PROTECTED] People who used magic without knowing what they were doing usually came to a sticky

Re: [lazarus] Lazarus on a Windows without admin privileges

2007-12-03 Thread Vincent Snijders
Damien Gerard schreef: When running the windows installer, the libqt4intf.dll can not be installed in the system32 folder. It is a problem for all windows accounts without admin privileges. You can uncheck that option, can't you? Vincent

Re: [lazarus] Movable Tabs on Code Editor

2007-12-03 Thread Lee Jenkins
Mattias Gaertner wrote: On Sun, 02 Dec 2007 18:16:05 -0500 Lee Jenkins [EMAIL PROTECTED] wrote: [...] And not to be greedy, but a Close All Other Tabs item on the short cut menu for tabs would be very nice as well. This function is currently somewhat hidden: Some widgetset have close buttons

Re: [lazarus] Lazarus on a Windows without admin privileges

2007-12-03 Thread Damien Gerard
On Dec 3, 2007, at 2:39 PM, Vincent Snijders wrote: Damien Gerard schreef: When running the windows installer, the libqt4intf.dll can not be installed in the system32 folder. It is a problem for all windows accounts without admin privileges. You can uncheck that option, can't you? Yes

Re: [lazarus] Serial Comm Support Windows

2007-12-03 Thread Luis R. Hilario B.
Look at your inbox. 2007/12/2, Stephano [EMAIL PROTECTED]: Florian Klaempfl wrote: May I add this to the rtl? Luis Hilario modified FPC's Unix serial.pp unit for use under windows (which I have not tested). You can refer to the following post:

Re: [lazarus] Serial Comm Support Windows

2007-12-03 Thread Stephano
Luis R. Hilario B. wrote: Look at your inbox. 2007/12/2, Stephano [EMAIL PROTECTED]: Florian Klaempfl wrote: May I add this to the rtl? My inbox contained a positive answer :) Florian, I will send you privately the approval for reference.

[lazarus] cross compile CPU_TARGET fails

2007-12-03 Thread Sam Liddicott
All the instructions I can find on building a cross compiler say to pas CPU_TARGET and OS_TARGET as makefile parameters. (According to: http://wiki.lazarus.freepascal.org/Cross_compiling http://wiki.freepascal.org/WinCE_port etc) But when I use this notation, the make fails because it can't find

Re: cross compile CPU_TARGET fails

2007-12-03 Thread Sam Liddicott
Never mind, I seem to have guessed right sayingL FPC= Sam Sam Liddicott wrote: All the instructions I can find on building a cross compiler say to pas CPU_TARGET and OS_TARGET as makefile parameters. (According to: http://wiki.lazarus.freepascal.org/Cross_compiling

[lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread el stamatakos
Hi All, I have an MDI application in which I have two forms. Form1 (Main form) and form2 (Child Form). In form 2 I have some TComboBox and TEdit Components. In the main form I have some TEdit components. I would like Form1(MainForm) TEditBox to have info from Form2(Child Form) TEditBox. I

Re: [lazarus] Docking

2007-12-03 Thread huisvuil
Open Perl IDE: http://open-perl-ide.sourceforge.net/ Ported + examples (including compiled demo): http://www.torry.net/pages.php?s=79 (DockPanel Professional v.3.1) Would this be a usable/reliable docking mechanisme for Lazarus? (Its not really a big issue, but i do truely miss window docking)

Re: [lazarus] Docking

2007-12-03 Thread Mattias Gaertner
On Mon, 03 Dec 2007 19:06:55 +0100 huisvuil [EMAIL PROTECTED] wrote: Open Perl IDE: http://open-perl-ide.sourceforge.net/ Ported + examples (including compiled demo): http://www.torry.net/pages.php?s=79 (DockPanel Professional v.3.1) Would this be a usable/reliable docking mechanisme

Re: [lazarus] Patch for Forms in Forms or MDI

2007-12-03 Thread Mattias Gaertner
On Mon, 03 Dec 2007 09:38:45 +0100 Guadagnini David [EMAIL PROTECTED] wrote: This patch fixes the problem that if I put a form in another it is locked. If You remember if I have two forms and write: Form2.Parent := Panel1; Form2.Align := alClient; I have form2 into the Panel1 (in

Re: [lazarus] Patch for Forms in Forms or MDI

2007-12-03 Thread Mattias Gaertner
On Mon, 3 Dec 2007 19:52:24 +0100 Mattias Gaertner [EMAIL PROTECTED] wrote: On Mon, 03 Dec 2007 09:38:45 +0100 Guadagnini David [EMAIL PROTECTED] wrote: This patch fixes the problem that if I put a form in another it is locked. If You remember if I have two forms and write:

Re: [lazarus] Patch for Forms in Forms or MDI

2007-12-03 Thread Vincent Snijders
Mattias Gaertner schreef: On Mon, 03 Dec 2007 09:38:45 +0100 Guadagnini David [EMAIL PROTECTED] wrote: This patch fixes the problem that if I put a form in another it is locked. If You remember if I have two forms and write: Form2.Parent := Panel1; Form2.Align := alClient; I have form2 into

Re: [lazarus] Patch for Forms in Forms or MDI

2007-12-03 Thread Vincent Snijders
Mattias Gaertner schreef: On Mon, 03 Dec 2007 09:38:45 +0100 Guadagnini David [EMAIL PROTECTED] wrote: This patch fixes the problem that if I put a form in another it is locked. If You remember if I have two forms and write: Form2.Parent := Panel1; Form2.Align := alClient; I have form2 into

[lazarus] No ToolTip Symbols?

2007-12-03 Thread Lee Jenkins
Hi all, When debugging and placing my cursor over a variable, all I get is No Symbol XXX in current context. I have: Generate Debuggin Info for GDB = checked. ToolTip symbol Tools = checked. ToolTip Expression Evaluation = checked. -- Warm Regards, Lee My wife is better at Guitar Hero

Re: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread Roberto Padovani
You can use public variables (or a private variable with the corresponding public methods for reading and writing to it, or even better a property). For simplicity, let's say that we go with the public variables. Let TMainForm be the class name of the main form. In the child form class, you could

Re: [lazarus] No ToolTip Symbols?

2007-12-03 Thread Lee Jenkins
Lee Jenkins wrote: Hi all, When debugging and placing my cursor over a variable, all I get is No Symbol XXX in current context. I have: Generate Debuggin Info for GDB = checked. ToolTip symbol Tools = checked. ToolTip Expression Evaluation = checked. I should qualify this a bit more.

RE: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread el stamatakos
Hi R# I am not sure I follow. in my ChildForm when I declare formMainReference : TMainForm it does not know what TMainForm is since unit2 has no idea about unit1 (MainForm). Can you give me the details of what unit1(MainForm) and unit2(ChildForm) looks like since I cannot get it to work.

Re: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread Roberto Padovani
yeah, add unit1 in the uses clause of unit2 and add unit2 in the uses clause of unit1. R# 2007/12/3, el stamatakos [EMAIL PROTECTED]: Hi R# I am not sure I follow. in my ChildForm when I declare formMainReference : TMainForm it does not know what TMainForm is since unit2 has no idea

RE: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread el stamatakos
Hi R, Can you do this. I get an error Circular unit reference to unit1 Thanks Lefti Date: Mon, 3 Dec 2007 21:52:08 +0100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] Main Form retreiving data from Child Form yeah, add unit1 in the uses clause of unit2 and add

RE: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread el stamatakos
Hi R, Can you do this. I get an error Circular unit reference to unit1 Thanks Lefti Date: Mon, 3 Dec 2007 21:52:08 +0100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] Main Form retreiving data from Child Form yeah, add unit1 in the uses clause of unit2 and add

Re: [lazarus] Fatal: Can't find unit *** used by Lazarus when build lazarus with my own package

2007-12-03 Thread Mattias Gaertner
On Sun, 2 Dec 2007 21:43:16 -0600 Jesus Reyes A. [EMAIL PROTECTED] wrote: - Original Message - From: Mattias Gaertner [EMAIL PROTECTED] To: lazarus@miraclec.com Sent: Sunday, December 02, 2007 4:29 PM Subject: Re: [lazarus] Fatal: Can't find unit *** used by Lazarus when build

Re: [lazarus] Patch for Forms in Forms or MDI

2007-12-03 Thread Mattias Gaertner
On Mon, 03 Dec 2007 20:16:44 +0100 Vincent Snijders [EMAIL PROTECTED] wrote: Mattias Gaertner schreef: On Mon, 03 Dec 2007 09:38:45 +0100 Guadagnini David [EMAIL PROTECTED] wrote: This patch fixes the problem that if I put a form in another it is locked. If You remember if I have

Re: [lazarus] Main Form retreiving data from Child Form

2007-12-03 Thread John
el stamatakos wrote: Hi R, Can you do this. I get an error "Circular unit reference to unit1" Thanks Lefti Date: Mon, 3 Dec 2007 21:52:08 +0100 From: [EMAIL PROTECTED] To: lazarus@miraclec.com Subject: Re: [lazarus] Main Form retreiving data from Child Form yeah, add unit1 in

Re: [lazarus] SQLite 3 datetime and timestamp

2007-12-03 Thread Luiz Americo Pereira Camara
Luca Olivetti wrote: En/na Roberto Padovani ha escrit: When the project I'm working on is finished, I'll strip everything from the source code and only leave a detailed tutorial for using sqlite without visual components. FWIW to do that you can also use sqlite3 directly (or with a thin

Re: [lazarus] Lazarus on Fedora 8

2007-12-03 Thread C Western
C Western wrote: The switch from Fedora 7 to 8 seems to have revealed some problems. The same lazarus executable looks fine on 7, but on 8 has two issues: 1. The font used for menus and dialog boxes is now a rather larger font (?Arial) and is clearly not using the gtk2 theme settings. I

Re: [lazarus] SQLite 3 datetime and timestamp

2007-12-03 Thread Luiz Americo Pereira Camara
Roberto Padovani wrote: Now, about assumptions. in sqlite3ds there is the assumption that BOOLEAN fields are stored as 1 or 0. In fact, to recover a db that had TRUE and FALSE, I made a new class where I changed ftBool to fString. In this way I could read them, parse them and then write them

[lazarus] returning empty published property from component

2007-12-03 Thread Marc Santhoff
Hi, what is the convention for returning unset published properties when making a component? For numerical values it is 0 or eventually a default value, but how about strings? Should an empty string be returned or a NIL pointer? I'm mostly thinking of property editors and the object inspector

[lazarus] FPC unit in Lazarus

2007-12-03 Thread SteveG
Awhile ago I found that the following 2nd line (C:\lazarus\fpc\2.2.1\source\rtl\objpas\fmtbcd.pas) causes problems when using database access units in a dll. (note the space at front of line) {$r+,q+,s+} { $r-,q-,s-} Removing the space fixes the problem for me, though may cause others yet

[lazarus] SOAP DateTime

2007-12-03 Thread A.J. Venter
Hi guys, I'm busy writing a SOAP client, and I'm a little stuck formatting a datetime to be SOAP compatible. What SHOULD a SOAP datetime string look like ? Is there a function to produce one from a TDateTime ? I tried to write a simple FormateDateTime function to do it, but I must have a detail