I'm trying to create reliable, multi-platform solution to select and copy part of an image from given source. So far I have found some problems and code looks quite weird...
Here is attempt with GTK2 which works as expected using DrawFocusRect(), but that is not how this should be done on Windows and with Delphi... As I explained in the source, for GTK2 need to be done extra care to add DrawFocusRect(), otherwise white dot will remain on the TImage canvas, if not multiple trails of rectangle when moving.
I think on Delphi this was much easier, no need to care about calling DrawFocusRect() so many times nor to reassign image source...
Can anyone try this code on Windows?