DrawingArea1.Cached=true
' gambas class file
' by postapase
Public Sub Form_Open()
Dim Lado As Integer = 100
Me.Center
Me.Title = "Ejemplo Cuadrado"
Paint.Begin(DrawingArea1)
Paint.LineWidth = 1
Paint.Rectangle(DrawingArea1.Width / 2 - (Lado / 2), DrawingArea1.Height / 2 - (Lado / 2), Lado, Lado)
Paint.Stroke
Paint.End
End
' by postapase
Public Sub Form_Open()
Dim Lado As Integer = 100
Me.Center
Me.Title = "Ejemplo Cuadrado"
Paint.Begin(DrawingArea1)
Paint.LineWidth = 1
Paint.Rectangle(DrawingArea1.Width / 2 - (Lado / 2), DrawingArea1.Height / 2 - (Lado / 2), Lado, Lado)
Paint.Stroke
Paint.End
End
No hay comentarios.:
Publicar un comentario