Re: [Lazarus] sleep function don't passed before executing the next statement

2012-11-21 Thread Bernd
2012/11/19 Eric Kom eric...@metropolitancollege.co.za: Thanks for all Martin, it's works StatusBar.SimpleText := 'My name is Tux'; StatusBar.Update; sleep(2000); StatusBar.SimpleText := 'am ready'; I will try the hard code also You should generally try your best to avoid using Sleep()

Re: [Lazarus] sleep function don't passed before executing the next statement

2012-11-21 Thread Michael Schnell
On 11/21/2012 09:35 AM, Bernd wrote: You should generally try your best to avoid using Sleep() in the above way in most cases. I would go so fat saying that in a GUI project sleep in the main thread is strictly forbidden, as it produces nothing but confusion. (Same is true for any busy wait

[Lazarus] lazbarcodes: unsuccessfully compiled

2012-11-21 Thread Eric Kom
Good day, I downloaded the tar file for lazbarcodes, after tried to compile lazbarcodes_runtimeonly.lpk file, the above error message occurred: lazbarcodes_runtimeonly.pas(10,3) Fatal: Can not find unit zint used by lazbarcodes_runtimeonly. Check if package lazbarcodes_runtimeonly is in the

Re: [Lazarus] sleep function don't passed before executing the next statement

2012-11-21 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 11/21/2012 09:35 AM, Bernd wrote: You should generally try your best to avoid using Sleep() in the above way in most cases. I would go so fat saying that in a GUI project sleep in the main thread is strictly forbidden, as it produces nothing but confusion. (Same is

Re: [Lazarus] sleep function don't passed before executing the next statement

2012-11-21 Thread Hans-Peter Diettrich
Mark Morgan Lloyd schrieb: Michael Schnell wrote: (Same is true for any busy wait polling loops in the main thread and busy wait polling loops without sleep in worker threads.) Also much database stuff in my experience. *Anything* which doesn't return immediately is very bad news from a

Re: [Lazarus] sleep function don't passed before executing the next statement

2012-11-21 Thread Mark Morgan Lloyd
Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: Michael Schnell wrote: (Same is true for any busy wait polling loops in the main thread and busy wait polling loops without sleep in worker threads.) Also much database stuff in my experience. *Anything* which doesn't return

Re: [Lazarus] ODBC-problems

2012-11-21 Thread Koenraad Lelong
Op 20-11-12 15:15, Reinier Olislagers schreef: Maybe that's because I installed the 64-bit Firebird drivers ? No. I've got both 32 bit and 64 bit Firebird ODBC drivers here. (Wwhen I use FPC with FB I generally use the SQLDB interbae/Firebird driver - but I can confirm both x86 and x64

[Lazarus] Code auto-formatting

2012-11-21 Thread Krzysztof
Hi, Can't find this option in Source menu. Is exists any package which format code in editor? I just updated CodeTyphon from 2.90 to 3.00. In my old project I see that code formatting is wrong in random lines (too much or too less tabs / spaces) Regards. --

Re: [Lazarus] ODBC-problems

2012-11-21 Thread Reinier Olislagers
On 21-11-2012 12:46, Koenraad Lelong wrote: Op 20-11-12 15:15, Reinier Olislagers schreef: When I use Firebird, I use the native drivers. It was only a testcase to see if ODBC works. Understood. Just wanted to reply to Michael's remark re ODBC+FB and his suggestion on whether to use an x86 or

Re: [Lazarus] Code auto-formatting

2012-11-21 Thread Reinier Olislagers
On 21-11-2012 13:14, Krzysztof wrote: Hi, Can't find this option in Source menu. Is exists any package which format code in editor? I just updated CodeTyphon from 2.90 to 3.00. In my old project I see that code formatting is wrong in random lines (too much or too less tabs / spaces)

[Lazarus] Font.OnChange already occupied

2012-11-21 Thread Valdas Jankūnas
Hello, I discovered that Font.OnChange of Form and their Components after creation is already assigned (not nil). Is it Ok? -- Valdas Jankūnas -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org

Re: [Lazarus] Font.OnChange already occupied

2012-11-21 Thread Mattias Gaertner
On Wed, 21 Nov 2012 14:33:13 +0200 Valdas Jankūnas zmu...@gmail.com wrote: Hello, I discovered that Font.OnChange of Form and their Components after creation is already assigned (not nil). Is it Ok? Yes. Mattias -- ___ Lazarus mailing list

Re: [Lazarus] Font.OnChange already occupied

2012-11-21 Thread Valdas Jankūnas
2012.11.21 14:46, Mattias Gaertner rašė: On Wed, 21 Nov 2012 14:33:13 +0200 Valdas Jankūnas zmu...@gmail.com wrote: Hello, I discovered that Font.OnChange of Form and their Components after creation is already assigned (not nil). Is it Ok? Yes. So, if I use own Font.OnChange event

Re: [Lazarus] Font.OnChange already occupied

2012-11-21 Thread Mattias Gaertner
On Wed, 21 Nov 2012 15:03:37 +0200 Valdas Jankūnas zmu...@gmail.com wrote: 2012.11.21 14:46, Mattias Gaertner rašė: On Wed, 21 Nov 2012 14:33:13 +0200 Valdas Jankūnas zmu...@gmail.com wrote: Hello, I discovered that Font.OnChange of Form and their Components after creation is

[Lazarus] Fatal: Circular unit reference between units

2012-11-21 Thread Eric Kom
Good day all, Please I got a problem regarding units. To use components from unit1 called mainWindow, I included the header unit1 inside unit2 called loginScholarly. During build process, the above message occurred: loginscholarly.pas(19,42) Fatal: Circular unit reference between

Re: [Lazarus] Fatal: Circular unit reference between units

2012-11-21 Thread michael . vancanneyt
On Wed, 21 Nov 2012, Eric Kom wrote: Good day all, Please I got a problem regarding units. To use components from unit1 called mainWindow, I included the header unit1 inside unit2 called loginScholarly. During build process, the above message occurred: loginscholarly.pas(19,42) Fatal:

Re: [Lazarus] Code auto-formatting

2012-11-21 Thread Krzysztof
It has (but I had this package disabled). Thank you very much! BTW: 1. Can I somehow format only selected code? JCF made changes in whole editor. 2. JCF has problem if strings have special characters (for example polish ę). It throw strange exceptions. But this issue is easy to solve 2012/11/21

Re: [Lazarus] Updating Lazarus

2012-11-21 Thread Chavoux Luyt
Hi Mattias On 21 November 2012 09:34, Mattias Gaertner nc-gaert...@netcologne.dewrote: On Tue, 20 Nov 2012 13:27:54 +0200 Chavoux Luyt chav...@gmail.com wrote: Hi all I just wanted to make confirm that I am correct: If I update Lazarus (using apt on debian-based system) I will need

Re: [Lazarus] Fatal: Circular unit reference between units

2012-11-21 Thread Eric Kom
On 21/11/2012 15:45, michael.vancann...@wisa.be wrote: On Wed, 21 Nov 2012, Eric Kom wrote: Good day all, Please I got a problem regarding units. To use components from unit1 called mainWindow, I included the header unit1 inside unit2 called loginScholarly. During build process, the above

Re: [Lazarus] Code auto-formatting

2012-11-21 Thread leledumbo
1. Can I somehow format only selected code? JCF made changes in whole editor. No AFAIK, it can't use partial parsing to format the code since it may lose scope information thus can cause wrong formatting. 2. JCF has problem if strings have special characters (for example polish ę). It throw

Re: [Lazarus] Fatal: Circular unit reference between units

2012-11-21 Thread leledumbo
This is very likely to happen on user interface units. Decide: do you really need to have them using each other? or actually one can / must be started / opened / executed from the other? the problem might also happen if you tightly integrate data to the user interface. if you use 3rd unit / object

Re: [Lazarus] sleep function don't passed before executing the next statement

2012-11-21 Thread Mark Morgan Lloyd
Hans-Peter Diettrich wrote: Mark Morgan Lloyd schrieb: Michael Schnell wrote: (Same is true for any busy wait polling loops in the main thread and busy wait polling loops without sleep in worker threads.) Also much database stuff in my experience. *Anything* which doesn't return

Re: [Lazarus] Code auto-formatting

2012-11-21 Thread Krzysztof
No AFAIK, it can't use partial parsing to format the code since it may lose scope information thus can cause wrong formatting. Right, but it is possible, for example Eclipse or Netbeans has also Fix indent for correcting tab only for selected lines. Seems that it is looking for first parent

Re: [Lazarus] lazbarcodes: unsuccessfully compiled

2012-11-21 Thread José Mejuto
El 21/11/2012 9:56, Eric Kom escribió: I downloaded the tar file for lazbarcodes, after tried to compile lazbarcodes_runtimeonly.lpk file, the above error message occurred: lazbarcodes_runtimeonly.pas(10,3) Fatal: Can not find unit zint used by lazbarcodes_runtimeonly. Check if package