[Lazarus] TLabel.OptimalFill and AutoSizeDelayed

Daniel Simoes de Ameida dopidaniel at yahoo.com.br
Fri Jan 11 01:50:21 CET 2013

Good night list,

I notice a strange behavior on TLabel.OptimalFill...

 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...

Following with the Debug, I 
notice that AutoSizeDelayed is set to True for this situation, and this 
make the function TCustomLabel.CalcFittingFontHeight exit prematurely...

I attached a small project to demonstrate the issue...

Should I open a Issue on BugTracker ?

Thanks for the great effort to keep Lazarus and FPC increasingly better...

Best Regards
[]s Daniel

Conheça o Projeto ACBr - Automaçao Comercial Brasil
DJSystem a Loja Patrocinadora do ACBr
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20130110/a7fc9e04/attachment-0002.html>

More information about the Lazarus mailing list