奇怪的MouseButtons |
尚未結案
|
mustapha.wang
資深會員 發表:89 回覆:409 積分:274 註冊:2002-03-13 發送簡訊給我 |
procedure TWinForm.Panel_QiPan_MouseUp(sender: System.Object; e: System.Windows.Forms.MouseEventArgs); begin if FPlaying then exit; if FBaseInputing then begin case e.Button of System.Windows.Forms.MouseButtons.Left :PutQiZi(e.X,e.Y,1,-1); System.Windows.Forms.MouseButtons.Right:PutQiZi(e.X,e.Y,0,-1); end; end else PutQiZi(e.X,e.Y,FTurn,FIndex); end;如果不写红色的NameSpace,编译会报错:Record,object or class type required. 把鼠标移动到MouseButtons词上,hint显示为:Prop Control.MouseButtons:MouseButtons 可是Control是System.Windows.Forms里的一个Class,MouseButtons是Control的一个property,编译器和Code Insight怎么找到它去了呢? 久病成良医--多试 千人之诺诺,不如一士之谔谔--兼听
------
江上何人初见月,江月何年初照人 |
本站聲明 |
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。 2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。 3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇! |