30.04.2013 Views

1. Visual Basic - Curso completo teoria y practica

1. Visual Basic - Curso completo teoria y practica

1. Visual Basic - Curso completo teoria y practica

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Para el desarrollo de la presente aplicación proceda a<br />

crear un nuevo proyecto y agregar al formulario 34 cuadros de<br />

imagen. Luego ingresar el código mostrado.<br />

Objeto Nombre Descripción<br />

Picture1 . . . Picture32 PicColor Opciones de color<br />

Picture33 PicMuestra Color actual utilizado<br />

Picture34 PicLienzo Area de dibujo<br />

Dim COLOR As Single<br />

Private Sub Form_Load()<br />

End Sub<br />

PicLienzo.ScaleMode = 3<br />

PicLienzo.DrawWidth = 5<br />

COLOR = RGB(0, 0, 0)<br />

Private Sub PicColor_Click(Index As Integer)<br />

End Sub<br />

COLOR = PicColor(Index).BackColor<br />

PicMuestra.BackColor = COLOR<br />

Private Sub PicLienzo_MouseDown(Button As Integer, _<br />

End Sub<br />

If Button = vbLeftButton Then<br />

End If<br />

Shift As Integer, X As Single, Y As Single)<br />

PicLienzo.PSet (X, Y), COLOR<br />

Pág. 200

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!