Events and hidden Components


#1

I have a Button thats behind a (sometimes) hidden Component (DrawableComposite).

The Button itself is visible but doesn't receive mouse clicks. (for i.e. "button down", etc.).

Is this to be expected?

Do I need to forward those events somehow? Even when the overlaying Component is hidden?

Thanks,

raketa.


#2

I think you need to call setInterceptsMouseClicks (bool allowClicksOnThisComponent, bool allowClicksOnChildComponents) on the hidden component, toggling this depending on it's shown/hidden state.