i:= 0;<br>
while condition do<br>
begin<br>
readln(f, str);<br>
label1.Caption:= Format('Number: %d', [i]);<br>
statusbar1.Panels[0].Text:= Format('Number: %d', [i]);<br>
Inc(i);<br>
end;<br><br>If condition stays true, then statusbar will flicker continuously... (being updated continuously)<br><br>you don't have an "exit" condition here (like "while not EOF(F) do")<br><br>Maybe this will help?<br>
<br>Also, just for information:<br>Which OS are you on, which version of that OS and which SVN version (or Lazarus release version)?<br><br>Regards,<br>-Reenen<br><br><br><br><div class="gmail_quote">On Fri, Dec 19, 2008 at 11:17 AM, Andrea Mauri <span dir="ltr"><<a href="mailto:andrea.mauri.75@gmail.com">andrea.mauri.75@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Mattias Gaertner ha scritto:<br>
<div class="Ih2E3d">> On Thu, 18 Dec 2008 14:58:58 +0100<br>
> Andrea Mauri <<a href="mailto:andrea.mauri.75@gmail.com">andrea.mauri.75@gmail.com</a>> wrote:<br>
><br>
><br>
>> But why, same monitor, same application, labels do not flicker while<br>
>> statusbar flickers?<br>
>><br>
><br>
> If statusbar text and properties do not change and it still flickers<br>
> when it is repainted, then there is a bug in the double buffering.<br>
> Please create a bug report.<br>
><br>
> Mattias<br>
><br>
<br>
</div>As I wrote in my first e-mail in this thread the statusbar flickers when<br>
the text changes.<br>
This is what I wrote in my first e-mail:<br>
<div class="Ih2E3d"><br>
"<br>
Dear all,<br>
I encountered a flickering problem when using a statusbar under winxp<br>
(lazarus v0.9.27 r17839 i386-win32-win32/win64 fpc 2.2.2)<br>
Using a code similar to the following:<br>
<br>
i:= 0;<br>
while condition do<br>
begin<br>
readln(f, str);<br>
label1.Caption:= Format('Number: %d', [i]);<br>
statusbar1.Panels[0].Text:= Format('Number: %d', [i]);<br>
Inc(i);<br>
end;<br>
<br>
The text in the status bar panel flickers a lot while the same text in<br>
the label does not flicker.<br>
On Linux Ubuntu also the statusbar works fine.<br>
Another issue, but I am not sure because I made just some few tests, it<br>
seems that writing on the statusbar is a little slower than writing on a<br>
label.<br>
"<br>
<br>
</div>So the text changes (not all the text, 'Number: ' string is fixed) in the statusbar, no other properties change.<br>
I encounter this problem only on windows. Labels work properly.<br>
Confirm that I have to create a bug report.<br>
Thanks,<br>
<font color="#888888">Andrea<br>
</font><div class="Ih2E3d"><br>
<br>
> _______________________________________________<br>
> Lazarus mailing list<br>
> <a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>
> <a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
><br>
><br>
<br>
</div><div class="Ih2E3d">--<br>
Dr. Andrea Mauri, PhD<br>
Milano Chemometrics and QSAR Research Group<br>
Department of Environmental Sciences<br>
University of Milano-Bicocca<br>
P.zza della Scienza, 1<br>
20126 Milano - Italy<br>
<br>
Tel: ++39 02 64482801<br>
mailto:<a href="mailto:andrea.mauri.75@gmail.com">andrea.mauri.75@gmail.com</a><br>
<a href="http://michem.disat.unimib.it/chm/" target="_blank">http://michem.disat.unimib.it/chm/</a><br>
<br>
_______________________________________________<br>
</div><div><div></div><div class="Wj3C7c">Lazarus mailing list<br>
<a href="mailto:Lazarus@lazarus.freepascal.org">Lazarus@lazarus.freepascal.org</a><br>
<a href="http://www.lazarus.freepascal.org/mailman/listinfo/lazarus" target="_blank">http://www.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>o__<br>,_.>/ _<br>(_)_\(_)_______<br>...speed is good<br>_______________<br>I believe five out of four people have a problem with fractions.<br>