Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-01

TLabel.OptimalFill and AutoSizeDelayed

2 messages · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Daniel Simoes de Ameida

Good night list,

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

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

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.freepascal.org/pipermail/lazarus/attachments/20130110/a7fc9e04/attachment.html>

Reply by email

Daniel Simoes de Ameida
to Daniel Simoes de Ameida

Ok... attachment not accepted...

Please download the Small Demo to demonstrate the issue, here: http://www.djsystem.com.br/AutoSize.zip

?
[]s Daniel

Conhe?a o Projeto ACBr - Automa?ao Comercial Brasil DJSystem a Loja Patrocinadora do ACBr

Show quoted text 12 lines
________________________________ De: Daniel Simoes de Ameida Para: Lazarus mailing list Enviadas: Quinta-feira, 10 de Janeiro de 2013 22:50 Assunto: [Lazarus] TLabel.OptimalFill and AutoSizeDelayed Good night list, I notice a strange behavior on TLabel.OptimalFill... 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...

Following with the Debug, I

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

Show quoted text 22 lines
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 -- _______________________________________________ Lazarus mailing list http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130110/b3f333da/attachment-0001.html>

Reply by email