Welcome to the Tweaking4All community forums!
When participating, please keep the Forum Rules in mind!
Topics for particular software or systems: Start your topic link with the name of the application or system.
For example “MacOS X – Your question“, or “MS Word – Your Tip or Trick“.
Please note that switching to another language when reading a post will not bring you to the same post, in Dutch, as there is no translation for that post!
Seems hard to determine the height of the titlebar/caption of a form. I've seen some calls that are Windows specific only, and some tricks that maximize the form to determine the size (flicker), or system calls that simply do not work on all platforms.
So after tinkering with that issue for a bit, I figured; why not use the "translation" of a pixel on a form to its location on the screen and determine how much it's off? (a.k.a. the titlebar height)
Tested this under Windows (11), macOS (Monterey and Sonoma), GTK2 and QT5 ... and it just works ...
function DetermineTitlebarHeight(aForm:Tform):integer;
var
global_pos : TPoint;
begin
global_pos := aForm.ClientToScreen(Point (1,1));
Result := global_pos.Y - aForm.Top;
end;
I've tested this at onFormPaint and onFormChangeBounds, and even when changing themes (Linux) it adapts.
For testing I've added a little project that has 2 units, where the 2nd unit stays aligned to the bottom of the first unit.
Ulvenhout.com My home town ... Ulvenhout in the Netherlands (Noord Brabant)
WinSCP WinSCP - Great free tool for (S)FTP/SSH, includes remote editing of text files, copying files, etc.
AlternativeTo Great resource when you're looking for alternatives for an application that you'd like to use, but might not be available on your platform or the application you have is just not doing it right.
Packages Great tool for MacOS X developers, to create your own installer packages (free).
Find Any File (FAF) [Shareware] Find any File, even when Spotlight fails (eg. your network shares)
SpeedOf.me Test the speed of your Internet connection
Links Page These and more of our favorite links can be found on the Links Page.
New Downloads
RenameMyTVSeries-2.3.2-QT5-Linux-x64-static-ffmpeg.tar.xzDate: 2025-07-10 - Size: 78.3 MBRename My TV Series, for Linux (64 bit QT5), a tool to assist in renaming TV Show episode files. This bundle comews with rather large static builds of ffmpeg and ffprobe.
RenameMyTVSeries-2.3.2-QT5-Linux-x64-shared-ffmpeg.tar.xzDate: 2025-07-10 - Size: 1.9 MBRename My TV Series, for Linux (64 bit QT5), a tool to assist in renaming TV Show episode files. This bundle relies on ffmpeg and ffprobe shared libraries on your system.
RenameMyTVSeries-2.3.2-GTK-Linux-x64-static-ffmpeg.tar.xzDate: 2025-07-10 - Size: 78.3 MBRename My TV Series, for Linux (64 bit GTK), a tool to assist in renaming TV Show episode files. This bundle comes with (large) static builds of ffmpeg and ffprobe.
RenameMyTVSeries-2.3.2-GTK-Linux-x64-shared-ffmpeg.tar.xzDate: 2025-07-10 - Size: 1.9 MBRename My TV Series, for Linux (64 bit GTK), a tool to assist in renaming TV Show episode files. This bundle relies on ffmpeg and ffprobe shared libraries on your system.
RenameMyTVSeries-2.3.2-Windows-x64-setup.exeDate: 2025-07-10 - Size: 48.8 MBRename My TV Series, for Windows (Intel 64 bit), a tool to assist in renaming TV Show episode files. Static builds of ffmpeg and ffprobe are included.
RenameMyTVSeries-2.3.2-macOS-Universal.dmgDate: 2025-07-10 - Size: 98.5 MBRename My TV Series, for macOS (Universal binary for Apple Silicon ARM and Intel 64 bit), a tool to assist in renaming TV Show episode files. Static universal binary builds of ffmpeg and ffprobe are included.
Downloads Page Find these and more Downloads on the Downloads Page, where you will also find articles references, operating system requirements and categories.
Amazon Ads
Support us by doing your shopping at Amazon.com, either click the link, or click one of the links below …
You can also sponsor us through these Amazon offerings:
Please consider disabling your ad blocker for our website.We rely on these ads to be able to run our website.You can of course support us in other ways (see Support Us on the left).