ignore mouse event on label inside panel

2019-07-24 21:20发布

I am making a custom menu. I am applying colors on panels on mouse enter and mouse leave.

I have labels on these panels, and the mouse enter and leave events work snappy, but as soon as I hover over the label (on/inside) the panel, the mouse leave event is fired. I know I can just do the same thing for the label mouse enter event, but I am doing some other visual stuff, and I need to have the label mouse events totally disregarded. Any ideas?

Thanks in advance.

1条回答
疯言疯语
2楼-- · 2019-07-24 21:55

I eventually just used the menu control, and styled it accordingly. Does the job better than I could with code...

查看更多
登录 后发表回答