Re: [Lazarus] flickering on statusbar panel

2008-12-19 Thread Andrea Mauri
Mattias Gaertner ha scritto: On Thu, 18 Dec 2008 14:58:58 +0100 Andrea Mauri andrea.mauri...@gmail.com wrote: But why, same monitor, same application, labels do not flicker while statusbar flickers? If statusbar text and properties do not change and it still flickers when it is

Re: [Lazarus] flickering on statusbar panel

2008-12-19 Thread Reenen Laurie
i:= 0; while condition do begin readln(f, str); label1.Caption:= Format('Number: %d', [i]); statusbar1.Panels[0].Text:= Format('Number: %d', [i]); Inc(i); end; If condition stays true, then statusbar will flicker continuously... (being updated continuously) you don't have an exit condition

Re: [Lazarus] Win32 HICON

2008-12-19 Thread JoshyFun
Hello Paul, Friday, December 19, 2008, 12:49:43 AM, you wrote: PI No, it is not buggy. TIcon must work this way too. About TImageList - it PI just does not supports AddIcon method at moment. PI Try to create a Bitmap and assign your icon to it first then add that PI bitmap into imagelist: PI

Re: [Lazarus] flickering on statusbar panel

2008-12-19 Thread Andrea Mauri
The code I wrote in the e-mail is just a sample! Anyway, create a new project, drop a label, a statusbar and a button on the form. Create a panel on the statusbar. On buttonclick drop the following code: procedure TForm1.Button1Click(Sender: TObject); var i: integer; begin i:= 0; while i

[Lazarus] Appending to a binary file

2008-12-19 Thread Dave Coventry
Can one do this? I know that you can append test to the end of Text files, but can you tack on data to an existing file? ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Appending to a binary file

2008-12-19 Thread Reenen Laurie
Yes... Seek the end of the file, and then write to the file... I think it's FileSeek these days. (that's if you binary file is a file of TMyRecord) On Fri, Dec 19, 2008 at 3:10 PM, Dave Coventry dgcoven...@gmail.com wrote: Can one do this? I know that you can append test to the end of

Re: [Lazarus] Appending to a binary file

2008-12-19 Thread Dave Coventry
The file is type 'File' var MF: File; bffer: array [0..127] of Byte; begin AssignFile(MF,fname); FileMode:=fmOpenWrite; Reset(MF,1); Blockwrite(MF,bffer,128); CloseFile(MF); end; Do you reckon that would do it? 2008/12/19 Reenen Laurie rlau...@gmail.com: Yes... Seek the end of

Re: [Lazarus] Appending to a binary file

2008-12-19 Thread Andrew Brunner
Ok, so if you want to use TFileStream you would just FS.Seek(0,sofromEnd); FS.Write(MyRec,SizeOf(MyRec)); On Fri, Dec 19, 2008 at 7:49 AM, Andrew Brunner andrew.t.brun...@gmail.com wrote: procedure Append(); var sBuffer:string; iLength:integer; begin sBuffer:='My Appended

Re: [Lazarus] flickering on statusbar panel

2008-12-19 Thread Mattias Gaertner
On Fri, 19 Dec 2008 11:52:18 +0100 Andrea Mauri andrea.mauri...@gmail.com wrote: The code I wrote in the e-mail is just a sample! Anyway, create a new project, drop a label, a statusbar and a button on the form. Create a panel on the statusbar. On buttonclick drop the following code:

Re: [Lazarus] flickering on statusbar panel

2008-12-19 Thread Andrea Mauri
Bug report created. Andrae Mattias Gaertner ha scritto: On Fri, 19 Dec 2008 11:52:18 +0100 Andrea Mauri andrea.mauri...@gmail.com wrote: The code I wrote in the e-mail is just a sample! Anyway, create a new project, drop a label, a statusbar and a button on the form. Create a panel on

Re: [Lazarus] flickering on statusbar panel

2008-12-19 Thread Michael Van Canneyt
On Fri, 19 Dec 2008, Mattias Gaertner wrote: On Fri, 19 Dec 2008 11:52:18 +0100 Andrea Mauri andrea.mauri...@gmail.com wrote: The code I wrote in the e-mail is just a sample! Anyway, create a new project, drop a label, a statusbar and a button on the form. Create a panel on the

Re: [Lazarus] flickering on statusbar panel

2008-12-19 Thread Sergei Gorelkin
Michael Van Canneyt wrote: As far as I know, in Delphi the statusbar updates immediatly, contrary to a label. There is a bug in VCL that causes statusbars flicker. It can be fixed by something like not passing WM_ERASEBKGND to DefWindowProc (something like is because it was a long time

[Lazarus] Lazarus forum

2008-12-19 Thread Marc Weustink
Hi, This week Paul and I have been busy setting up a new forum on a new server sponsored by firmos.at. All existing users and messages from the old forum are transfered to the new forum. We hope you will enjoy the new features and speed. Marc ___

Re: [Lazarus] Lazarus forum

2008-12-19 Thread Felipe Monteiro de Carvalho
I for one am very happy with the change! -- Felipe Monteiro de Carvalho ___ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Lazarus forum

2008-12-19 Thread Bob K.
Looks good. Thank you Marc. -- From: Marc Weustink m...@dommelstein.net Sent: Friday, December 19, 2008 14:21 To: General mailing list lazarus@lazarus.freepascal.org Subject: [Lazarus] Lazarus forum Hi, This week Paul and I have been busy

Re: [Lazarus] Lazarus forum

2008-12-19 Thread Marc Weustink
Marc Weustink wrote: Hi, This week Paul and I have been busy setting up a new forum on a new server sponsored by firmos.at. All existing users and messages from the old forum are transfered to the new forum. We hope you will enjoy the new features and speed. Ow, and I almost forgot, you

Re: [Lazarus] MacOS X : File Associations...

2008-12-19 Thread dominique
Any ideas? On Wed, 17 Dec 2008 18:33:22 -0500, domini...@savagesoftware.com.au wrote: Hi all, I've correctly set up File Associations for my application, but I can't seem to find out which file was actually launched when my application starts. Is it passed in as the ParamStr(1) or by some

[Lazarus] Some docking theory

2008-12-19 Thread Hans-Peter Diettrich
Thanks to Paul for his engagement in the improvement of docking :-) Here are some thoughts about the organization and management of dock zones, which should be helpful in the further development. Keys: determination of the drop zone, and how to keep the dock tree balanced. A dock zone can