Layering Controls

I have a full screen ImageView and have placed a canvas on top that is my button to move to the next view.

A pink line appears around the ImageView control to indicate the canvas is part of the group. The canvas events don’t appear to register. If I separate the controls so they are not overlapping then everything behaves but obviously I don’t get what I want with a fullscreen image as the backdrop. Suggestions?

Make sure the canvas is actually in front, by using the position commands icons 7-10 on top of the IDE. Otherwise any control in front will consume the event.

Including of course another canvas, contrary to what happens in OS X where canvases let events through unless return true in MouseDown.

Hi Michel, I had checked that but the behaviour is still the same. Unless I drag half the canvas off the view it won’t register a click.

Difficult to figure what could be done without seeing the project.

Are you sure the canvas is the forward most control (select the canvas, and click the ORDER FRONT button)

Yes sure it is front object.
What is the significance of the control objects being in a group? Is it just for moving them around?
I have even tried deleting it and adding again.

There is noting complicated about the project, in fact these are the only two objects on the page.

I created a test project here from your description, and it reacts as expected.

What do you mean ? If indeed you have two canvases in the same control set (I don’t know what a “control group” is), their events will all fire at the same place, and each will have an index. That can be convenient for certain applications.
See User Guide Book 2: User Interface, Chapter 2: Desktop, Section 16: Control Sets and Dynamic Controls

Me too. Does work as expected.

[quote=282790:@Martin Fitzgibbons]I have a full screen ImageView and have placed a canvas on top that is my button to move to the next view.

A pink line appears around the ImageView control to indicate the canvas is part of the group. The canvas events don’t appear to register. If I separate the controls so they are not overlapping then everything behaves but obviously I don’t get what I want with a fullscreen image as the backdrop. Suggestions?[/quote]
I have the same problem, a red frame around random controls. Sometimes Xojo sets random parents to controls. You must select the control on the explorer(?) left side and move it in design mode out of the control area and back. I wish i could set the parents or remove all of them.
Op says he can’t click on the “smaller” item, even though its in front. He tried it in design mode.

It is the other way around: He wants the Canvas to be the child of the ImageView. And it works as expected: you can simulate touch events on an ImageWell, which does not have these events itself.