开发者

ignore mouse event on label inside panel

开发者 https://www.devze.com 2023-03-16 09:20 出处:网络
I am making a custom menu. I am applying colors on pane开发者_Go百科ls on mouse enter and mouse leave.

I am making a custom menu. I am applying colors on pane开发者_Go百科ls 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消