 |
VFP 愛用者社區 本討論區為 Visual Foxpro 愛用者經驗交流的地方, 請多多利用"搜尋"的功能, 先查看看有無前例可循, 如果還有不懂的再發問. 部份主題有附加檔案, 須先註冊成為社區居民才可以下載.
|
上一篇主題 :: 下一篇主題 |
發表人 |
內容 |
Batman
註冊時間: 2003-11-15 文章: 348
第 1 樓
|
發表於: 星期一 一月 14, 2013 6:30 pm 文章主題: 請問如何在Screen 檢測 鼠標動作, 如 Mouseup() |
|
|
如題, 謝覆 |
|
回頂端 |
|
 |
garfield Site Admin

註冊時間: 2003-01-30 文章: 2160
第 2 樓
|
發表於: 星期二 一月 15, 2013 11:12 pm 文章主題: |
|
|
mytest = CREATEOBJECT('testmouse')
BINDEVENT(_screen,'Mousemove',mytest,'Mousemove')
mytest.show
READ events
DEFINE CLASS testmouse as Form
width=300
height=200
top=0
left=0
caption ="test bindevent _screen.mousemove"
*docreate = .t.
PROCEDURE Mousemove
LPARAMETERS nButton, nShift, nXCoord, nYCoord
WAIT windows STR(nXCoord)+STR(nYCoord) nowait
ENDPROC
PROCEDURE Destroy
CLEAR EVENTS
endproc
ENDDEFINE _________________ 利用>>搜尋<<的功能會比問的還要快得到答案. |
|
回頂端 |
|
 |
Batman
註冊時間: 2003-11-15 文章: 348
第 3 樓
|
發表於: 星期二 一月 15, 2013 11:44 pm 文章主題: |
|
|
謝謝Garfield回覆, 試一下, thanks |
|
回頂端 |
|
 |
|
|
您 無法 在這個版面發表文章 您 無法 在這個版面回覆文章 您 無法 在這個版面編輯文章 您 無法 在這個版面刪除文章 您 無法 在這個版面進行投票 您 無法 在這個版面附加檔案 您 無法 在這個版面下載檔案
|
|