1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
| Option Explicit
Private Sub Form_Load()
Me.Height = 8450: Me.Width = 12195
Me.ScaleMode = 6
Picture1.Move 1, 7.5, 200, 280: Picture1.AutoRedraw = True: Picture1.ScaleMode = 6
Command1.Move 2, 1, 31, 5.5: Command1.Caption = "Charger picture"
Command2.Move 35, 1, 31, 5.5: Command2.Caption = "Ecrire"
Command3.Move 68, 1, 31, 5.5: Command3.Caption = "Effacer"
Command4.Move 100, 1, 31, 5.5: Command4.Caption = "Imprimer"
VScroll1.Move 203, 7.5, 5.5, 100: VScroll1.Max = 150: VScroll1.Min = 0
End Sub
Private Sub Command1_Click()
Picture1.Picture = LoadPicture("C:\PersoFrancis\Tableau.bmp")
End Sub
Private Sub Command2_Click()
Picture1.CurrentX = 20
Picture1.CurrentY = 32
Picture1.Print "A que coucou"
End Sub
Private Sub Command3_Click()
Picture1.Cls
End Sub
Private Sub Command4_Click()
'Printer.PaintPicture Picture1.Image
End Sub
Private Sub VScroll1_Change()
Picture1.Top = 7.408 + -VScroll1.Value
End Sub
Private Sub VScroll1_Scroll()
VScroll1_Change
End Sub |
Partager