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!
Ad Blocking Detected
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).
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.
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).
Frizting Free tool to design schematics and PCB's - they even offer a very affordable PCB production service.
Find Any File (FAF) [Shareware] Find any File, even when Spotlight fails (eg. your network shares)
Down For Every One or Just Me? Checks if a website (URL) is up or down, for every one or just you ... Awesome to test when a link is not working.
PreLoaders Handy little online tool to generate preload images (spinners).
Hex Fiend Free Open Source Hex viewer and editor for MacOS X.
WordPress WordPress is one of the best tools for Blogs and Content Management Systems.
Links Page These and more of our favorite links can be found on the Links Page.
New Downloads
ConnectMeNow4-v4.0.11-macOS-x86-64.dmgDate: 2023-10-21 - Size: 3.5 MBVersion 4 of ConnectMeNow - A tool for more convenient mounting of network shares under macOS. This is the Intel version which works on Intel and Apple Silicon Macs.
ConnectMeNow4-v4.0.11-macOS-arm64.dmgDate: 2023-10-21 - Size: 3 MBVersion 4 of ConnectMeNow - A tool for more convenient mounting of network shares under macOS. This is the Apple Silicon version (not suitable for Intel).
MiniWOL2 MacOS (64 bits Apple Silicon)Date: 2023-08-01 - Size: 1.2 MBminiWol is a simple, but effective application to send Wake On LAN to network devices. This is the signed 64 bit MacOS ARM (Apple Silicon) version.
MovieScanner2-2.2.3-Windows-32bit-setup.exeDate: 2023-04-12 - Size: 18.6 MBA small application that uses FFProbe to scan your video files and logs these details in a small database. This is the 32 bit Windows version.
MovieScanner2-2.2.2-Linux-GTK-64bits.tar.gzDate: 2023-04-11 - Size: 29.2 MBA small application that uses FFProbe to scan your video files and logs these details in a small database. This is the 64 bit Linux version for GTK.
MovieScanner2-2.2.2-Linux-QT5-64bits.tar.gzDate: 2023-04-11 - Size: 29.1 MBA small application that uses FFProbe to scan your video files and logs these details in a small database. This is the 64 bit Linux version for QT5.
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).