delphilabelspacingtlabel

Top Space TLabel or TStaticText Delphi


I need my Label aligned to Top, but in the very top, in the first top pixel. The property layout is already aligned to Top and I'm still getting this spacing. For some reason, Delphi add an extra spacing. I can't have that.

enter image description here


Solution

  • The text actually is lined to the top. To see that use some characters that actually reach the top like German Umlauts ÄÖÜ. In your example the letter T is just not big enough to reach the top.