I think mouseOver/out deals with the mouse being directly on top of a
component.  rollOver/out deals with the mouse being on top of a component or
that component's children.  See switching to the roll events fixes your
problems.

- Dan Freiman

On 11/2/07, Brian <[EMAIL PROTECTED]> wrote:
>
>   I'm working with view states for the first time. BTW, so far this
> looks like a great tool for developers, really cool functionality
> built in. I'm trying to do something similar to the examples:
>
> I have a custom component which is basically a VBox containing an
> Image on top and then a label below the image. I've created a view
> state which adds an HBox below the label which contains 2 more
> buttons. On the parent component, I've got listeners for mouse events
> which are onMouseOver, switch to the view state with the additional
> buttons, onMouseOut, switch back to basic state.
>
> The MouseOver works as expected, the new buttons appear. But the
> problem is when I move the mouse down to the new buttons, this
> triggers a MouseOut on the Vbox, which causes the buttons to
> disappear. I thought the new buttons are still contained in the VBox,
> and so the MouseOut shouldn't be triggered until I move outside of
> those buttons.
>
> Do I have to add mouselisteners on the buttons that are added in the
> new state in order to keep them visible? That seems kind of circular
> or counter-intuitive.
>
> Suggestions? Thanks
>
>  
>

Reply via email to