MouseDown事件当在按下鼠标按钮时发生。
PrivateSub Form_MouseDown(ButtonAs Integer,
ShiftAs Integer, XAs Single,YAs Single)
PrivateSub MDIForm_MouseDown(ButtonAsInteger,
Shift AsInteger, XAs Single,YAs Single)
PrivateSub Object_MouseDown([IndexAs Integer,]
ButtonAs Integer, ShiftAs Integer,
XAs Single, YAs Single)
对MouseDown事件的说明:
uObject和Index的含义同Click事件。
vButton:整数,对应于鼠标的各个按钮状态。
wShift:整数,用于标识Shift、Ctrl、Alt键的状态。
xX,Y:用于指示鼠标指针的当前位置。这些坐标值跟当前坐标系统有关,该坐标系统可通过ScaleHeight、ScaleWidth、ScaleLeft和ScaleTop属性来设置的