message.number在other中的运用

用法示例:

如果要禁止使用中键(滚动轮),则在Window窗体(或DataWindow数据窗口)中的other事件里写: if message.number = 522 then return 1

在此附上其他一些message.number的表示含义:

512: 鼠标移动 //window无效

513: 左键按下 //window无效

514: 左键释放 //window无效

515: 左键双击 //window无效

516: 右键按下 //window无效

517: 右键释放 

518: 右键双击 

519: 中键按下(3键鼠标 Only) 

520: 中键释放(3键鼠标 Only) 

521: 中键双击(3键鼠标 Only)

522: 中键滚轮滚动 (3键鼠标 Only)

原文地址:https://www.cnblogs.com/lishk/p/3481216.html