[VB6 ] 在游標處Print

看板Visual_Basic作者 (Patlabor)時間19年前 (2005/07/06 17:14), 編輯推噓2(200)
留言2則, 2人參與, 最新討論串1/4 (看更多)
Dim colorval As Long Private Sub Form_Load() colorval = RGB(255, 255, 255) End Sub Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single) If Button = 1 Then Cls PSet (X, Y), colorval Print "滑鼠左鍵" End If If Button = 2 Then Cls PSet (X, Y), colorval Print "滑鼠右鍵" End If End Sub 如果要在mousedown時在游標處print出字串,是非得加上PSet來指定位置? 又能否將這段步驟省去,只用print? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.115.84.252

220.134.166.68 07/06, , 1F
CurrentX=xxx, CurrentY=xxx
220.134.166.68 07/06, 1F

59.115.84.252 07/06, , 2F
不解,是另設2字串變數下去指定?
59.115.84.252 07/06, 2F
文章代碼(AID): #12ow3ea6 (Visual_Basic)
討論串 (同標題文章)
文章代碼(AID): #12ow3ea6 (Visual_Basic)