例如:
鼠标点击拖动后实现效果:
###########################################问题二:
画出直线或任意线(线条样式为虚线或者实线and点画线),在画线结束后线的末尾显示一个箭头。
例如:实现效果
-------------------------------------->
鼠标点击拖动后实现效果:
###########################################问题二:
画出直线或任意线(线条样式为虚线或者实线and点画线),在画线结束后线的末尾显示一个箭头。
例如:实现效果
-------------------------------------->
解决方案 »
- 超难,高手请进,关于两个程序之间的内存读取
- VB不能动态申请内存我应该怎么办?
- 求助!怎样利用VB将EXCEL中的数据显示出来并导入到ORACLE的表中???
- DataGrid如何进行数据分页啊?
- vb写程序监视一个网络程序是否运行,如没有运行则启动它,该怎么做?谁能给个思路
- 散分散分,没什么意思,国庆节就这么over了
- *******移植出了问题,请帮助***********
- 一个简单的关于函数的问题
- 请问vb做ocx,如果网页和ocx间数据传递(一个数值),为什么会提示“active控件...”的提示框?
- 整整做了一整天,扫雷游戏终于完工了!庆祝!!!(来者有分)
- ActiveX 部件不能创建对象: 'Excel.Application'
- 到底如何激活后台窗口呀(继续)
2,
Me.Line (1, 1000)-(1000, 1000)
Me.CurrentX = 1000
Me.CurrentY = 900
Print ">"
DragOver事件:鼠标在拖放过程中就会产生DragOver事件。
Me.Cls
Me.CurrentX = 100: Me.CurrentY = 500 '指定位置
Me.Print "----------->"
End Sub
Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
Me.DrawMode = 7: Me.DrawStyle = 1
X1 = X: X2 = X
Y1 = Y: Y2 = Y
End If
End SubPrivate Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
Me.Line (X1, Y1)-(X2, Y2), QBColor(10)
Me.Line (X1, Y1)-(X, Y), QBColor(10)
X2 = X: Y2 = Y
End If
End SubPrivate Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
Me.DrawMode = 13: Me.DrawStyle = 0
Me.Line (X1, Y1)-(X, Y), QBColor(10)
Me.CurrentX = X: Me.CurrentY = Y - (Me.TextHeight("-") \ 2)
Me.Print "->"
End If
End Sub