[solved] Button as child of StaticImage not working?

noobOmat

11-01-2011 08:38:18

Hi,

I try to create a Button Widget as a child of a StaticImage Widget. The display works fine (the StaticImage as well as the Button are shown), but the Button doesn't seem to respond to any mouse actions anymore (no hover change, no action processed when clicked etc).

When I create the Button as a direct child of root everything works just as expected, but I'd like to position the Button relative to the underlying StaticImage, so if I'm not mistaken attaching it as a child would be the way to go.

In another GUI I used Buttons as childs of the window widget and I haven't experienced these problems there. So I wonder if there is anything special about the StaticImage widget, which prevents using buttons as childs?

Altren

11-01-2011 09:24:19

Such Button should work fine. Show your code or layout where you create button.

noobOmat

11-01-2011 09:49:17

Such Button should work fine. Show your code or layout where you create button.
I will, as soon as I can get hold of it (in a few hours), I don't have access right now.

Anyohow thanks for the quick answer. So now I know this possible in general and I just did something wrong.

noobOmat

11-01-2011 23:20:26

Huh, this is odd....

Checking again i find that everything works as expected. Sorry for false alarm. :)