1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
Private Declare Function RoundRect Lib "gdi32" _
(ByVal hdc As Long, ByVal X1 As Long, ByVal Y1 As Long, ByVal X2 As Long, _
ByVal Y2 As Long, ByVal X3 As Long, ByVal Y3 As Long) As Long
Private Sub Command1_Click()
Set q = Picture1
'exemple de position bien sûr les paramètres peuvent changer
q.ScaleMode = vbCentimeters
q.ScaleTop = 100
q.ScaleLeft = 27
q.CurrentX = 120
q.CurrentY = 120
ep = 100
q.ScaleWidth = 150
q.ScaleHeight = 50
q.Cls
q.ForeColor = vbRed
RoundRect q.hdc, 10, 10, 100, 100, 20, 20
q.ForeColor = vbBlue
RoundRect q.hdc, 50, 50, 120, 120, 20, 20
q.ForeColor = vbGreen
RoundRect q.hdc, 90, 90, 140, 140, 10, 10
End Sub |
Partager