It's by definition of the "mouse over" state: if the element is covered by some other element, the mouse is over it. In your case, if the mouse is over the button, it is not over the FocusPanel. The same holds for SWT: I made a function, which only hid the button, if the mouse was outside of the parent panel by means of mouse position. Then I called this function from mouseOut handlers of the panel and all of it's children.
But I found you question when I was searching for "widget that has mouse events and also can contain other widgets", as I could not find any except for FocusPanel, but I don't want it's focus functionality. Do you know of such panel? Thanks, Viliam On 14. Jan, 23:59 h., Yossi <[email protected]> wrote: > I think that this is relevant for any widget that has mouse events and > also can contain other widgets. > > I useFocusPaneland inside the focus panel I have a HorizontalPanel > with a few buttons. > I created a mouseOver and mouseOut handlers that whenever the mouse > gets into the panel, the background changes and also a new button > appear. > If the mouse go out of the panel, the background changes back and the > button disappear. > > The problem is this: > Whenever I move the mouse over one of the buttons, an event of > "mouseOut" is fired and the background changes and the new button > disappear - This happens for a flash of a second and the mouseOver > event is fired again. > > All of the time the mouse stays on thefocusPanel > > My question is, why is the mouseOut event is fired and how can I > implement the require behavior? > > Thank you very much > Yossi
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
