Thanks Bertrand!
Attached you find an experimental version which might give you a start. It’s basically how far I took the TPad approach using the canvas’ original pad instead of an additional one.
It is working fine when zooming/unzooming the image in canvas 1 (the ellipse does not scale properly yet), but it is not working correctly when resizing the GUI. For some reason the canvas background remains white instead of black in this case - no matter what I do. (Note: The canvas background has to be black for medical images so the radiologists perception of the gray values is not affected.)
HTH,
Greg
PS: If we can’t figure it out, I might have to return to the approach from thread
[url]Handle click on a TGCompositeFrame
with consists of resizing the whole background frame and embedded canvas. This leads to other issues, however, which I would be happy to avoid.
MyGui.zip (113 KB)