开发者

NSButton raising click event on mouseup

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜