开发者

NSButton raising click event on mouseup

开发者 https://www.devze.com 2023-01-13 19:01 出处:网络
I am looking for an NSButton raising the click event on mouseup, even if the mouse down开发者_StackOverflow中文版 has been made outside the button.

I am looking for an NSButton raising the click event on mouseup, even if the mouse down开发者_StackOverflow中文版 has been made outside the button. Do you have any idea to get this behavior?

Thanks!


Moving the mouse outside a control before releasing the button allows the user to cancel the action.

I would think the only way to do that would be to intercept all events and handle all click tracking and movement tracking yourself.

However, it would result in a very unexpected interface behavior, so you should consider carefully why you need to do that.

0

精彩评论

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