@BosseB
You're welcome! In the converted version, I forgot to set FormStyle to fsSystemStayOnTop. This is needed for obvious reasons.
Back again after some ffmpeg investigations.
I have checked that I can use ffmpeg to capture the video in a defined rect area of the desktop.
It seems to work fine for the image part of the video, not yet solved: how to get the corresponding audio.
But that is for another thread..
Now I need the rectangle to create a selection function so the user (me) can place a video grabbing region on screen and get the coordinates for ffmpeg to use.
So I want to have a "select window" function in my app which should create the rectangle form and let the user place it and then when it is closed grab the rect coordinates for use with ffmpeg.
Concerning your comment above:
How exactly am I supposed to set this FormStyle property?
In code or using the Object Inspector on the form?
Any preference on which to use?
And can the entire thing be created in code without having a form unit included in the project?
It would be nice to have a function "SelectCaptureRegion" which when called creates the rectangular frame form all in code so only the pas file is needed...
Or is that overkill?