Non Focusable Panel?

Hi

I’m currently working on a main menu and I have run into a problem that there is a background panel that holds a image. Now before you say why I am using a panel instead of a Cube that fits the screen res with a texture on it. It’s cause it’s user changeable in the size, etc. The problem which I have is I have buttons on the screen, but if you click the background image, that gains focus and comes on top of buttons so the buttons are not usable. I was wondering if there was a way which I could disable clickable focus on that certain panel.

Sam

Just use:

[java]
myElement.setIgnoreMouse(true);
[/java]

1 Like

Thanks

Sam

1 Like

Sorry to necro this thread… but I also wanted to mention an alternative to setIgnoreMouse

If for some reason you still need the panel to be clickable, but just not be brought to the front, use:

Element.setEffectZOrder(false);