In a countdown timer I've written, the time is displayed in a TStaticText field. I'm having a hard time getting automatic resize to work after the font size is changed within the app. It starts up perfectly, but when the font is changed I can't figure out what to call to get it to auto-resize. I've tried InvalidatePreferredSize, Repaint, Resize and AdjustSize without success.
There's also a flicker when the numbers change (DoubleBuffered is set to true but it still flickers).
I'm experimenting with TImage, TShape and TPaintBox but I'm not sure of the best option.
Which component would work best to display the text with a user-definable font that would support automatic resizing and not flicker?
Is there a better way to do it? I've thought about drawing the digits to look like LEDs, but Canvas.TextOut is so simple.