home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmLineDDA
- BackColor = &H00C0C0C0&
- Caption = "LineDDA"
- ClientHeight = 4020
- ClientLeft = 1020
- ClientTop = 1425
- ClientWidth = 5055
- Height = 4425
- Left = 960
- LinkTopic = "Form1"
- ScaleHeight = 4020
- ScaleWidth = 5055
- Top = 1080
- Width = 5175
- Begin PictureBox Picture2
- Align = 1 'Align Top
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Height = 3195
- Left = 0
- ScaleHeight = 3195
- ScaleWidth = 5055
- TabIndex = 2
- Top = 0
- Width = 5055
- End
- Begin PictureBox Picture1
- Align = 2 'Align Bottom
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Height = 555
- Left = 0
- ScaleHeight = 555
- ScaleWidth = 5055
- TabIndex = 0
- Top = 3465
- Width = 5055
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "Mit LineDDA werden Linien gezeichnet. Die Punkte dieser Linien werden in unterschiedlichen Farben gesetzt. "
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 9.75
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 525
- Left = 15
- TabIndex = 1
- Top = 30
- Width = 7350
- End
- Begin Line Line1
- BorderColor = &H00FFFFFF&
- Index = 1
- X1 = 0
- X2 = 60030
- Y1 = 15
- Y2 = 15
- End
- Begin Line Line1
- Index = 0
- X1 = 0
- X2 = 60030
- Y1 = 0
- Y2 = 0
- End
- End
- Begin CBVBX ctlLineDDA
- CBType = 10 ' 10 - LineDDAProc
- Left = 0
- Top = 0
- End
- Option Explicit
- Dim col%
- Sub ctlLineDDA_LineDDAProc (x As Integer, y As Integer, lpData As Long)
- Picture2.PSet (x, y), QBColor(col)
- col = (col + 1) Mod 15
- End Sub
- Sub Form_Resize ()
- Picture2.Height = Picture1.Top
- End Sub
- Sub Picture2_Paint ()
- LineDDA 0, 0, Picture2.ScaleWidth, Picture2.ScaleHeight, ctlLineDDA.CBAdress, 0&
- End Sub
- Sub Picture2_Resize ()
- Picture2.Refresh
- End Sub
-