TDF_SIZE_TO_CONTENT
ATM i am trying to jsut observe VCL XE2 behavior clean-room style. I can look into VCL sources, but don't want to.
It also is not that much important as long as Lazarus goal is compatibility to Delphi, not to Win32 as it can be.
Auto-size in LCL seems to work more reliably than in VCL XE2 (almost all my attempts to set TForm.AutoSize to True failed miserably), so hopefully replacing mORMot's "pixel calculation" implementation with some auto-sizing window built of auto-sizing panels with different Align would be possible.
Meanwhile, three last screenshots.
The captions of radiobuttons get word-wrapped, but do effect the dialog's width.
So do TTaskDialog.Text and TTaskDialog.Title
However, the width in my FullHD (1920x1200) screen varies between 500 and 560, until would be squeeezed by Screen.ActiveMonitor.Height.
I start thinking that LCL implementaiton could strive at some fixed width in physical inches and only change height. Until some developer would pushes the boundaries that seems to be good enouth. And if the boundaries are pushed - then imperfect behaviour would be acceptable.