DelphiFAQ Home Search:
General :: Windows :: Programming :: Windows with Delphi :: Windows Forms
Code snippets, Q+A around the Windows user interface. From a Delphi perspective, but usually applicable to other languages.


This list is sorted by recent document popularity (not total page views).
New documents will first appear at the bottom.

Only the 40 most recently viewed articles are shown.
You can see the full list here.

Featured Article

How to get a string's width in pixels, not in characters

Sometimes you may need to know how wide a string is in pixels, e.g. for dynamically generated forms.
This depends of course on the selected font characteristics. Windows and the VLC provide a function TextWidth which is a method of TCanvas:


Generated 4:02:21 on Dec 16, 2017