[lazarus] Message window enhancement

2005-12-21 Thread Graeme Geldenhuys
Hi, What about the idea of highlighting 'User Defined' notes, maybe in bold or some other color. I use the $NOTE quite often, but struggle to find them in all the compiler hints scrolling by. eg: The compiler hints generated with {$NOTE ...} and all its friend could maybe be in Blue or Red etc.

Re: [lazarus] Changes for latest fpc-trunk

2005-12-21 Thread Joost van der Sluis
It was less work then I thought. With this patch Lazarus compiles on fpc 2.1.1 r2020 and up again. I'm not sure about the fix in controls.pp, though. What should the default be? And why was it '-1'? On Wed, 2005-12-21 at 14:24 +0100, Joost van der Sluis wrote: Hi all, in revision r2020 of

Re: [lazarus] Changes for latest fpc-trunk

2005-12-21 Thread Peter Vreman
Hi all, in revision r2020 of fpc the basic-generics support is added. But with that patch double identifiers aren't allowed anymore, it seems. That double identifiers were not reported was an error. It was upto the order of definition. If the property was defined before the procedure in the

[lazarus] How to copy/move files

2005-12-21 Thread bobby
hi to all, I'm making a program to sort a collection of specific files. Now, is there a crossplatform function to move/copy/rename files? If not, how can I do it for Win32? regards Boban Spasic _ To unsubscribe: mail [EMAIL

[lazarus] Component writing problems

2005-12-21 Thread Markku Niskanen
Hello, I have been trying to create a simple new component just for the sake of experience and I MUST be real stupid as I get the following backtrace when I try to insert the new component (which has been compiled ok) to the form. The component comes from Delphi and works just fine there. It

Re: [lazarus] Component writing problems

2005-12-21 Thread Mattias Gaertner
On Wed, 21 Dec 2005 20:28:55 +0200 Markku Niskanen [EMAIL PROTECTED] wrote: Hello, I have been trying to create a simple new component just for the sake of experience and I MUST be real stupid as I get the following backtrace when I try to insert the new component (which has been compiled

Re: [lazarus] Component writing problems

2005-12-21 Thread Marc Weustink
Mattias Gaertner wrote: On Wed, 21 Dec 2005 20:28:55 +0200 Markku Niskanen [EMAIL PROTECTED] wrote: procedure TSimpleLine.Resize; begin inherited; paint(); end; Don't call paint in Resize. This will be done automatically. It shouldn't be nesecary there, but if you ever want to repaint,

[lazarus] Re: How to copy/move files

2005-12-21 Thread Felipe Monteiro de Carvalho
bobby wrote: hi to all, I'm making a program to sort a collection of specific files. Now, is there a crossplatform function to move/copy/rename files? If not, how can I do it for Win32? For a non-multiplatform app you can use the Windows API call CopyFile. From MSDN: The CopyFile function

Re: [lazarus] Re: How to copy/move files

2005-12-21 Thread Felipe Monteiro de Carvalho
Found CopyFile here, but it throws an exception every time I use it. Do the folder must exists for target file (would it be automatically created), or I must care about creating it? Are you using PChar for the file names? I think the directory must exist. Use the ForceDirectories function in

Re: [lazarus] Re: How to copy/move files

2005-12-21 Thread bobby
Felipe Monteiro de Carvalho wrote: Found CopyFile here, but it throws an exception every time I use it. Do the folder must exists for target file (would it be automatically created), or I must care about creating it? Are you using PChar for the file names? I think the directory must

Re: [lazarus] Re: How to copy/move files

2005-12-21 Thread Felipe Monteiro de Carvalho
On 12/21/05, bobby [EMAIL PROTECTED] wrote: I didn't use WinAPI, I have used CopyFile from FileUtil unit. Do I need PChar with FileUtil too? If so, why Delete(StringGrid1.Cells[x,y]) works? No, PChar is only needed for the Windows API. I knew there was a CopyFile function somewhere in the

Re: [lazarus] error on compilation

2005-12-21 Thread Vincent Snijders
Julio C. Taborda wrote: Hi all, The last few days I was trying to build lazarus on linux but I always get the following error: Compiling graphics.pp Fatal: Can't find unit crc Fatal: Compilation aborted make[1]: *** [alllclunits.ppu] Error 1 make[1]: Leaving directory

Re: [lazarus] Re: How to copy/move files

2005-12-21 Thread bobby
Felipe Monteiro de Carvalho wrote: On 12/21/05, bobby [EMAIL PROTECTED] wrote: I didn't use WinAPI, I have used CopyFile from FileUtil unit. Do I need PChar with FileUtil too? If so, why Delete(StringGrid1.Cells[x,y]) works? No, PChar is only needed for the Windows API. I knew there

Re: [lazarus] Changes for latest fpc-trunk

2005-12-21 Thread Marc Weustink
Joost van der Sluis wrote: Yes, use this one instead. Thanks, committed, r8354 Marc _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at

[lazarus] Progressbar not working

2005-12-21 Thread Alexander Todorov
Hello, this simple code is not working. Put a button and a progressbar controls on a form. OnButtonClick write : - var i : Integer; begin ShowMessage('starting'); Progressbar1.Smooth := true; Progressbar1.Min := 0; Progressbar1.Max := 768*512; for i := 0 to

Re: [lazarus] Progressbar not working

2005-12-21 Thread barko
Lazarus (linux) 0.9.11 (latest from svn) works ok. Dne Wednesday of December 21 2005 23:22 je Alexander Todorov napisal(a): Hello, this simple code is not working. Put a button and a progressbar controls on a form. OnButtonClick write : - var i : Integer; begin

Re: [lazarus] Component writing problems

2005-12-21 Thread Markku Niskanen
Maybe you can take a look at http://wiki.lazarus.freepascal.org/index.php/RingChart_and_AnalogWatch to see how to create a analogue clock. ;-) Huh? Well, yes... I know there are lots of clocks available :) What I had in mind, really was to convert a simple Delphi freeware component to see

Re: [lazarus] Component writing problems

2005-12-21 Thread Mattias Gaertner
On Thu, 22 Dec 2005 01:30:13 +0200 Markku Niskanen [EMAIL PROTECTED] wrote: Maybe you can take a look at http://wiki.lazarus.freepascal.org/index.php/RingChart_and_AnalogWatch to see how to create a analogue clock. ;-) Huh? Well, yes... I know there are lots of clocks available :) What