ignore mouse event on label inside panel

血红的双手。 提交于 2019-12-24 07:46:16

问题


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:


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



来源:https://stackoverflow.com/questions/6541740/ignore-mouse-event-on-label-inside-panel

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!