问题
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