home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmAutoDisable
- BackColor = &H00C0C0C0&
- Caption = "Autodisable demo"
- ClientHeight = 4185
- ClientLeft = 1620
- ClientTop = 1635
- ClientWidth = 5535
- ClipControls = 0 'False
- Height = 4590
- Left = 1560
- LinkTopic = "Form2"
- ScaleHeight = 4185
- ScaleWidth = 5535
- Top = 1290
- Width = 5655
- Begin Frame Frame4
- BackColor = &H00C0C0C0&
- Height = 2715
- Left = 3660
- TabIndex = 15
- Top = 60
- Width = 1755
- Begin DBPush DBPush3
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Outer contour"
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- Enabled = 0 'False
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 3 'Inset w/light shading
- ForceDown = -1 'True
- ForceUp = 0 'False
- ForeColorDisabled= &H00808080&
- Height = 555
- Index = 0
- Left = 120
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 19
- Top = 180
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1515
- End
- Begin DBPush DBPush3
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Whole picture"
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- Enabled = 0 'False
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 3 'Inset w/light shading
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00808080&
- Height = 555
- Index = 1
- Left = 120
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 18
- Top = 780
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1515
- End
- Begin DBPush DBPush3
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "All contours (thick)"
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- Enabled = 0 'False
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 3 'Inset w/light shading
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00808080&
- Height = 555
- Index = 2
- Left = 120
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 17
- Top = 1380
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1515
- End
- Begin DBPush DBPush3
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "All contours (thin)"
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- Enabled = 0 'False
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 3 'Inset w/light shading
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00808080&
- Height = 555
- Index = 3
- Left = 120
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 16
- Top = 2040
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1515
- End
- End
- Begin Frame Frame3
- BackColor = &H00C0C0C0&
- Height = 1515
- Left = 2280
- TabIndex = 12
- Top = 1920
- Width = 1275
- Begin DBPush DBPush4
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Inset"
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- Enabled = 0 'False
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 3 'Inset w/light shading
- ForceDown = -1 'True
- ForceUp = 0 'False
- ForeColorDisabled= &H00808080&
- Height = 495
- Index = 1
- Left = 120
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 14
- Top = 840
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1035
- End
- Begin DBPush DBPush4
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Raised"
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- Enabled = 0 'False
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 3 'Inset w/light shading
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00808080&
- Height = 495
- Index = 0
- Left = 120
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 13
- Top = 240
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1035
- End
- End
- Begin Frame Frame2
- BackColor = &H00C0C0C0&
- Caption = "Transparent color"
- Height = 1515
- Left = 120
- TabIndex = 6
- Top = 1920
- Width = 2055
- Begin DBPush DBPush1
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "White"
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 315
- Index = 1
- Left = 120
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 10
- Top = 660
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 855
- End
- Begin DBPush DBPush1
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Black"
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 315
- Index = 2
- Left = 1080
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 9
- Top = 300
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 855
- End
- Begin DBPush DBPush1
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Red"
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 315
- Index = 3
- Left = 1080
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 8
- Top = 660
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 855
- End
- Begin DBPush DBPush1
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Yellow"
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = -1 'True
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 315
- Index = 0
- Left = 120
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 7
- Top = 300
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 855
- End
- Begin Label Label1
- BackStyle = 0 'Transparent
- Caption = "This only affects the bitmap, not the icons."
- Height = 435
- Left = 60
- TabIndex = 11
- Top = 1020
- Width = 2055
- End
- End
- Begin Frame Frame1
- BackColor = &H00C0C0C0&
- Caption = "Sample pictures"
- Height = 1815
- Left = 120
- TabIndex = 2
- Top = 60
- Width = 3435
- Begin DBPush DBPush13
- Alignment = 2 'Center
- AutoPictureDisabled= 1 'Outer contour Inset
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 1395
- Left = 120
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- Picture = FORM2.FRX:0000
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 5
- Top = 300
- TransColor = &H0000FFFF&
- Transparent = -1 'True
- VertAlignment = 1 'Bottom
- Width = 2055
- End
- Begin DBPush DBPush14
- Alignment = 2 'Center
- AutoPictureDisabled= 1 'Outer contour Inset
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 675
- Left = 2220
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- Picture = FORM2.FRX:0A9A
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 4
- Top = 300
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 1 'Bottom
- Width = 1095
- End
- Begin DBPush DBPush15
- Alignment = 2 'Center
- AutoPictureDisabled= 1 'Outer contour Inset
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 675
- Left = 2220
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- Picture = FORM2.FRX:0D9C
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 3
- Top = 1020
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 1 'Bottom
- Width = 1095
- End
- End
- Begin DBPush cmdExit
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00C0C0C0&
- BevelWidth = 2
- Caption = "Close"
- CornerColor = &H00C0C0C0&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- FocusRect = -1 'True
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- FontBold = 0 'False
- FontItalic = 0 'False
- FontName = "MS Sans Serif"
- FontSize = 8.25
- FontStrikethru = 0 'False
- FontUnderline = 0 'False
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 495
- Left = 2220
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 1 'Text right of picture
- PredefPicture = 2 'Cancel
- Style = 0 'Normal
- TabIndex = 1
- Top = 3600
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1275
- End
- Begin DBPush DBPush2
- Alignment = 2 'Center
- AutoPictureDisabled= 0 'Off
- BackColor = &H00C0C0C0&
- BackColorDown = &H00E0E0E0&
- BevelWidth = 2
- Caption = "Disable!"
- CornerColor = &H00000000&
- DarkColor = &H00808080&
- DropShadow = 0 'False
- FocusRect = 0 'False
- Font3D = 0 'None
- Font3DDisabled = 0 'None
- ForceDown = 0 'False
- ForceUp = 0 'False
- ForeColorDisabled= &H00000000&
- Height = 675
- Left = 3840
- LightColor = &H00FFFFFF&
- Outline = -1 'True
- OutlineSize = 1
- PaletteAware = 0 'False
- PictureFromEdge = 0
- Placement = 0 'Text below picture
- PredefPicture = 0 'None
- Style = 0 'Normal
- TabIndex = 0
- Top = 2880
- TransColor = &H00000000&
- Transparent = 0 'False
- VertAlignment = 2 'Center
- Width = 1455
- End
- Option Explicit
- Sub cmdExit_Click ()
- Unload Me
- End Sub
- Sub DBPush1_Click (Index As Integer)
- Static nCurrentButtonDown As Integer
- DBPush1(nCurrentButtonDown).ForceDown = False
- DBPush1(Index).ForceDown = True
- nCurrentButtonDown = Index
- Select Case nCurrentButtonDown
- Case 0:
- DBPush13.TransColor = &HFFFF&
- Case 1:
- DBPush13.TransColor = &HFFFFFF
- Case 2:
- DBPush13.TransColor = 0
- Case 3:
- DBPush13.TransColor = &HFF&
- End Select
- End Sub
- Sub DBPush2_Click ()
- DBPush2.ForceDown = Not DBPush2.ForceDown
- DBPush3(0).Enabled = DBPush2.ForceDown
- DBPush3(1).Enabled = DBPush2.ForceDown
- DBPush3(2).Enabled = DBPush2.ForceDown
- DBPush3(3).Enabled = DBPush2.ForceDown
- DBPush4(0).Enabled = DBPush2.ForceDown
- DBPush4(1).Enabled = DBPush2.ForceDown
- DBPush13.Enabled = Not DBPush2.ForceDown
- DBPush14.Enabled = Not DBPush2.ForceDown
- DBPush15.Enabled = Not DBPush2.ForceDown
- End Sub
- Sub DBPush3_Click (Index As Integer)
- Static nCBD As Integer
- If Index = nCBD Then Exit Sub
- DBPush3(Index).ForceDown = True
- DBPush3(nCBD).ForceDown = False
- nCBD = Index
- Dim x As Integer
- x = (DBPush13.AutoPictureDisabled - 1) And 1
- Select Case Index
- Case 0: x = x + 0
- Case 1: x = x + 2
- Case 2: x = x + 4
- Case 3: x = x + 6
- End Select
- DBPush13.AutoPictureDisabled = x + 1
- DBPush14.AutoPictureDisabled = x + 1
- DBPush15.AutoPictureDisabled = x + 1
- End Sub
- Sub DBPush4_Click (Index As Integer)
- If DBPush4(Index).ForceDown Then Exit Sub
- DBPush4(0).ForceDown = Not DBPush4(0).ForceDown
- DBPush4(1).ForceDown = Not DBPush4(1).ForceDown
- Dim x As Integer
- x = DBPush13.AutoPictureDisabled - 1
- x = x Xor 1
- DBPush13.AutoPictureDisabled = x + 1
- DBPush14.AutoPictureDisabled = x + 1
- DBPush15.AutoPictureDisabled = x + 1
- End Sub
-