ªð¦^¦Cªí ¤W¤@¥DÃD µo©«

[µo°Ý] ¦p¦ó©ñ¤Jform

Private Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)

Detail   §ï¦¨  §Aªºªí³æ¦WºÙ   ¦p¡G  UserForm
¬O¾Çµ{¦¡¦Ó¤£¬O­nµ{¦¡¡A¬O¶i¨Bªº°ò¦

TOP

§ï¥Î³o¤@­Ó
§Ú¨S§ïµ{¦¡½X¡AÁÙ¬O¸ò¤W¦¸¦^ÂФ@¼Ë¡A¥u¬O§ó§ï©pªº¨Æ¥óÅX°Ê
¥t...§Ú¬O¥Î µ{¦¡½s¿èµ¡µø¤Wªº¨Æ¥ó¬D¿ï¾¹
§Ú´ú¸Õ¹L  ·Æ¹«ªº§¤¼Ð·|¦b  label ¤W Åã¥Ü(¨ä¥L¨S¸Õ)¡A¦³°ÝÃD¦b»¡§a
  1. Private Sub UserForm_MouseMove(ByVal Button As Integer, ByVal Shift As Integer, ByVal X As Single, ByVal Y As Single)



  2.     Dim intShiftDown As Integer, intLeftButton As Integer

  3.     Me!Coordinates.Caption = X & ", " & Y
  4.     ' Use bit masks to determine state of
  5.     ' SHIFT key and left button.
  6.     intShiftDown = Shift And acShiftMask
  7.     intLeftButton = Button And acLeftButton
  8.     ' Check that SHIFT key and left button
  9.     ' are both pressed.
  10.     If intShiftDown And intLeftButton > 0 Then
  11.         MsgBox "Shift key and left mouse button were pressed."
  12.     End If


  13. End Sub
½Æ»s¥N½X
¬O¾Çµ{¦¡¦Ó¤£¬O­nµ{¦¡¡A¬O¶i¨Bªº°ò¦

TOP

        ÀR«ä¦Û¦b : ­n§åµû§O¤H®É¡A¥ý·Q·Q¦Û¤v¬O§_§¹¬üµL¯Ê¡C
ªð¦^¦Cªí ¤W¤@¥DÃD