I have a canvas with picture on it behind a Figure (which is a canvas from DataPlotClasses). Although the Figure is set to “transparent” and is completely empty, it is hiding the picture behind it.
What should I do to look through the Figure and see the picture behind it?
Assuming you are targeting Windows, you can’t layer controls that way because Xojo uses pseudo-transparency in its UI rendering. You would need to create a composite image of the two controls in order to show them overlapped/combined.
Or draw them in the Paint event of the Canvas, where at least the last-drawn item had transparent areas.
Basically the same thing, I just omitted where the composite image was drawn. Either way, you lose interactivity and have to code around that. Overlapping on Windows should just be avoided whenever possible.
Thanks Anthony - finally I can stop finding a solution in this direction! 