home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form FrameDemo
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- Caption = "Knob Frame & Background Properties Demo"
- ClientHeight = 4305
- ClientLeft = 1080
- ClientTop = 1770
- ClientWidth = 6300
- Height = 4710
- Left = 1020
- LinkTopic = "Form2"
- MaxButton = 0 'False
- MDIChild = -1 'True
- MinButton = 0 'False
- ScaleHeight = 4305
- ScaleWidth = 6300
- Top = 1425
- Width = 6420
- Begin Frame Frame3
- BackColor = &H00C0C0C0&
- Caption = "Frame Scale Properties"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 930
- Left = 2040
- TabIndex = 27
- Top = 150
- Width = 4110
- Begin HScrollBar HScroll1
- Height = 240
- Index = 0
- Left = 1680
- Max = 140
- TabIndex = 29
- Top = 270
- Width = 2000
- End
- Begin HScrollBar HScroll1
- Height = 240
- Index = 1
- Left = 1680
- Max = 140
- TabIndex = 28
- Top = 510
- Width = 2000
- End
- Begin Label Label2
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "0"
- Height = 195
- Index = 0
- Left = 3750
- TabIndex = 0
- Top = 300
- Width = 135
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "FrameScaleX:"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 210
- Index = 0
- Left = 570
- TabIndex = 1
- Top = 285
- Width = 1005
- End
- Begin Label Label1
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "FrameScaleY:"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 210
- Index = 1
- Left = 570
- TabIndex = 2
- Top = 525
- Width = 1020
- End
- Begin Label Label2
- AutoSize = -1 'True
- BackStyle = 0 'Transparent
- Caption = "0"
- Height = 195
- Index = 1
- Left = 3750
- TabIndex = 25
- Top = 540
- Width = 135
- End
- End
- Begin KNOB Knob1
- Angle = 0
- AutoRedraw = -1 'True
- AVersion = 2.5
- BackgroundColor = &H00000000&
- BevelInner = 1 ' 1 - Raised
- BevelOuter = 2 ' 2 - Inset
- BevelWidth = 2
- BorderType = 0 ' 0 - None
- BorderWidth = 2
- Digital = 0 'False
- DigitalColor = &H00000000&
- DigitalDecimals = 0
- DigitalFontID = 0
- DigitalX = 0
- DigitalY = 0
- FontID = 0
- FrameColor = &H00C0C0C0&
- FrameScaleX = 1.1
- FrameScaleY = 1.1
- FrameStyle = 1 ' 1 - Circle
- Height = 2985
- KnobColor = &H00808080&
- KnobMultiTurn = 0 'False
- KnobMultiTurnValue= 1
- KnobRadius = 0.5
- KnobSnap = -1 'True
- KnobSnapIncrement= 1
- KnobStyle = 0 ' 0 - Cicular
- KnobUserDefined = ""
- KnobValue = 3
- Left = 240
- MarkUserDefined = ""
- MouseControl = -1 'True
- OutlineAlign = 0 ' 0 - Left
- OutlineColor = &H00000000&
- OutlineTitle = ""
- OutlineWidth = 0
- Radius = 0
- TabIndex = 26
- Top = 1200
- Value = 0
- Width = 2985
- XScale = 0
- YScale = 0
- ZLoad = KFRAMES.FRX:0000
- End
- Begin Frame Frame1
- BackColor = &H00C0C0C0&
- Caption = "Picture Properties"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 1695
- Left = 3525
- TabIndex = 15
- Top = 1140
- Width = 2625
- Begin OptionButton Option1
- BackColor = &H00C0C0C0&
- Caption = "FramePicture"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 225
- Index = 0
- Left = 300
- TabIndex = 4
- Top = 300
- Value = -1 'True
- Width = 1800
- End
- Begin OptionButton Option1
- BackColor = &H00C0C0C0&
- Caption = "BackgroundPicture"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 225
- Index = 1
- Left = 300
- TabIndex = 5
- Top = 540
- Width = 1800
- End
- Begin PictureBox Image1
- Height = 645
- Index = 4
- Left = 1620
- Picture = KFRAMES.FRX:006C
- ScaleHeight = 41
- ScaleMode = 3 'Pixel
- ScaleWidth = 41
- TabIndex = 6
- Top = 930
- Width = 645
- End
- Begin PictureBox Image1
- Height = 645
- Index = 2
- Left = 960
- Picture = KFRAMES.FRX:46A6
- ScaleHeight = 41
- ScaleMode = 3 'Pixel
- ScaleWidth = 41
- TabIndex = 7
- Top = 930
- Width = 645
- End
- Begin PictureBox Image1
- Height = 645
- Index = 0
- Left = 300
- Picture = KFRAMES.FRX:8C80
- ScaleHeight = 41
- ScaleMode = 3 'Pixel
- ScaleWidth = 41
- TabIndex = 8
- Top = 930
- Width = 645
- End
- End
- Begin Frame Frame4
- BackColor = &H00C0C0C0&
- Caption = "Color Properties"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 1395
- Left = 3525
- TabIndex = 20
- Top = 2820
- Width = 2625
- Begin OptionButton Option3
- BackColor = &H00C0C0C0&
- Caption = "BackgroundColor"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 210
- Index = 1
- Left = 330
- TabIndex = 9
- Top = 540
- Width = 1800
- End
- Begin OptionButton Option3
- BackColor = &H00C0C0C0&
- Caption = "FrameColor"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 210
- Index = 0
- Left = 330
- TabIndex = 10
- Top = 300
- Value = -1 'True
- Width = 1800
- End
- Begin Label HColors
- BackColor = &H000080FF&
- Height = 225
- Index = 4
- Left = 1230
- TabIndex = 11
- Top = 990
- Width = 225
- End
- Begin Label HColors
- BackColor = &H00000000&
- Height = 225
- Index = 0
- Left = 270
- TabIndex = 16
- Top = 990
- Width = 225
- End
- Begin Label HColors
- BackColor = &H00808080&
- Height = 225
- Index = 5
- Left = 1470
- TabIndex = 17
- Top = 990
- Width = 225
- End
- Begin Label HColors
- BackColor = &H00FFFFFF&
- Height = 225
- Index = 1
- Left = 510
- TabIndex = 18
- Top = 990
- Width = 225
- End
- Begin Label HColors
- BackColor = &H000000FF&
- Height = 225
- Index = 6
- Left = 1710
- TabIndex = 19
- Top = 990
- Width = 225
- End
- Begin Label HColors
- BackColor = &H0000FF00&
- Height = 225
- Index = 2
- Left = 750
- TabIndex = 24
- Top = 990
- Width = 225
- End
- Begin Label HColors
- BackColor = &H0000FFFF&
- Height = 225
- Index = 7
- Left = 1950
- TabIndex = 23
- Top = 990
- Width = 225
- End
- Begin Label HColors
- BackColor = &H00FF0000&
- Height = 225
- Index = 3
- Left = 990
- TabIndex = 22
- Top = 990
- Width = 225
- End
- Begin Label HColors
- BackColor = &H00FF00FF&
- Height = 225
- Index = 8
- Left = 2190
- TabIndex = 21
- Top = 990
- Width = 225
- End
- End
- Begin Frame Frame2
- BackColor = &H00C0C0C0&
- Caption = "FrameStyle"
- FontBold = -1 'True
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 930
- Left = 225
- TabIndex = 12
- Top = 135
- Width = 1575
- Begin OptionButton Option2
- BackColor = &H00C0C0C0&
- Caption = "Rectangle"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 225
- Index = 2
- Left = 195
- TabIndex = 3
- Top = 645
- Width = 1000
- End
- Begin OptionButton Option2
- BackColor = &H00C0C0C0&
- Caption = "Circle"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 225
- Index = 1
- Left = 195
- TabIndex = 14
- Top = 435
- Width = 1000
- End
- Begin OptionButton Option2
- BackColor = &H00C0C0C0&
- Caption = "None"
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "Arial"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- Height = 225
- Index = 0
- Left = 195
- TabIndex = 13
- Top = 225
- Width = 1000
- End
- End
- Sub Form_Load ()
- hscroll1(0) = knob1.FrameScaleX * 100
- hscroll1(1) = knob1.FrameScaleY * 100
- option2(knob1.FrameStyle) = True
- End Sub
- Sub HColors_Click (index As Integer)
- If option3(0) Then
- knob1.FrameColor = hcolors(index).BackColor
- knob1.FramePicture = LoadPicture("")
- Else
- knob1.BackgroundColor = hcolors(index).BackColor
- knob1.BackgroundPicture = LoadPicture("")
- End If
- End Sub
- Sub HScroll1_Change (index As Integer)
- Select Case index
- Case 0
- knob1.FrameScaleX = hscroll1(0) / 100
- label2(0) = hscroll1(0) / 100
- Case 1
- knob1.FrameScaleY = hscroll1(1) / 100
- label2(1) = hscroll1(1) / 100
- End Select
- End Sub
- Sub HScroll1_Scroll (index As Integer)
- Select Case index
- Case 0
- knob1.FrameScaleX = hscroll1(0) / 100
- label2(0) = hscroll1(0) / 100
- Case 1
- knob1.FrameScaleY = hscroll1(1) / 100
- label2(1) = hscroll1(1) / 100
- End Select
- End Sub
- Sub Image1_Click (index As Integer)
- If option1(0) Then
- knob1.FramePicture = Image1(index).Picture
- Else
- knob1.BackgroundPicture = Image1(index).Picture
- End If
- End Sub
- Sub Option2_Click (index As Integer)
- knob1.FrameStyle = index
- If index = 1 Then
- label1(1).Visible = False
- hscroll1(1).Visible = False
- label2(1).Visible = False
- Else
- label1(1).Visible = True
- hscroll1(1).Visible = True
- label2(1).Visible = True
- End If
- End Sub
-