<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt">Ok... attachment not accepted... <br><br>Please download the Small Demo to demonstrate the issue, here:<br><a href="http://www.djsystem.com.br/AutoSize.zip">http://www.djsystem.com.br/AutoSize.zip</a><br><div><span><br></span></div><div> </div><div>[]s Daniel<br><br>Conheça o <a rel="nofollow" target="_blank" href="http://acbr.sourceforge.net/">Projeto ACBr - Automaçao Comercial Brasil</a><br><a rel="nofollow" target="_blank" href="http://www.djsystem.com.br/"><span style="font-weight:bold;">DJSystem</span> a Loja Patrocinadora do ACBr</a><br><br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;">  <div style="font-family: Courier New, courier, monaco, monospace, sans-serif; font-size: 10pt;"> <div style="font-family: times new roman, new york,
 times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight:bold;">De:</span></b> Daniel Simoes de Ameida <dopidaniel@yahoo.com.br><br> <b><span style="font-weight: bold;">Para:</span></b> Lazarus mailing list <lazarus@lists.lazarus.freepascal.org> <br> <b><span style="font-weight: bold;">Enviadas:</span></b> Quinta-feira, 10 de Janeiro de 2013 22:50<br> <b><span style="font-weight: bold;">Assunto:</span></b> [Lazarus] TLabel.OptimalFill and AutoSizeDelayed<br> </font> </div> <br><div id="yiv420674413"><div><div style="color:#000;background-color:#fff;font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt;"><div>Good night list,<br><br>I notice a strange behavior on TLabel.OptimalFill...<br><br>Sometimes
 it doesn't work... For instance.. I'm changing a TLabel.Text during a 
TTabSheet.Show event... and in this case, TLabel.OptimalFill doesn´t 
work... Even if I do a direct call TLabel.AdjustFontForOptimalFill it 
doesn´t recalculate the font size...<br><br>Following with the Debug, I 
notice that AutoSizeDelayed is set to True for this situation, and this 
make the function TCustomLabel.CalcFittingFontHeight exit prematurely...<br><br>I attached a small project to demonstrate the issue...<br><br>Should I open a Issue on BugTracker ?<br><br>Thanks for the great effort to keep Lazarus and FPC increasingly better...<br><br>Best Regards</div><div> </div><div>[]s Daniel<br><br>Conheça o <a rel="nofollow" target="_blank" href="http://acbr.sourceforge.net/">Projeto ACBr - Automaçao Comercial Brasil</a><br><a rel="nofollow" target="_blank" href="http://www.djsystem.com.br/"><span style="font-weight:bold;">DJSystem</span> a Loja Patrocinadora do ACBr</a><br></div></div></div></div><br>--<br>_______________________________________________<br>Lazarus mailing list<br><a ymailto="mailto:Lazarus@lists.lazarus.freepascal.org" href="mailto:Lazarus@lists.lazarus.freepascal.org">Lazarus@lists.lazarus.freepascal.org</a><br><a href="http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus"
 target="_blank">http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus</a><br><br><br> </div> </div> </blockquote></div>   </div></body></html>