home *** CD-ROM | disk | FTP | other *** search
/ Mastering Visual Basic 6 / mastvb6.iso / leadtools / ocx32.lt / FRAMESET.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1998-03-27  |  4.7 KB  |  157 lines

  1. VERSION 5.00
  2. Begin VB.Form FrameSet 
  3.    BorderStyle     =   3  'Fixed Dialog
  4.    Caption         =   "Frame Settings"
  5.    ClientHeight    =   3510
  6.    ClientLeft      =   1950
  7.    ClientTop       =   2040
  8.    ClientWidth     =   4950
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    PaletteMode     =   1  'UseZOrder
  13.    ScaleHeight     =   3510
  14.    ScaleWidth      =   4950
  15.    ShowInTaskbar   =   0   'False
  16.    Begin VB.CheckBox Check2 
  17.       Caption         =   "&Transparency"
  18.       Height          =   375
  19.       Left            =   240
  20.       TabIndex        =   11
  21.       Top             =   360
  22.       Width           =   1335
  23.    End
  24.    Begin VB.TextBox Text4 
  25.       Height          =   375
  26.       Left            =   1800
  27.       TabIndex        =   8
  28.       Text            =   "Text4"
  29.       Top             =   2760
  30.       Width           =   735
  31.    End
  32.    Begin VB.TextBox Text3 
  33.       Height          =   375
  34.       Left            =   240
  35.       TabIndex        =   7
  36.       Text            =   "Text3"
  37.       Top             =   2760
  38.       Width           =   735
  39.    End
  40.    Begin VB.ComboBox Combo1 
  41.       Height          =   315
  42.       ItemData        =   "FRAMESET.frx":0000
  43.       Left            =   240
  44.       List            =   "FRAMESET.frx":0010
  45.       Style           =   2  'Dropdown List
  46.       TabIndex        =   5
  47.       Top             =   1800
  48.       Width           =   2055
  49.    End
  50.    Begin VB.CommandButton Command2 
  51.       Cancel          =   -1  'True
  52.       Caption         =   "Cancel"
  53.       Height          =   375
  54.       Left            =   3480
  55.       TabIndex        =   4
  56.       Top             =   720
  57.       Width           =   1215
  58.    End
  59.    Begin VB.CommandButton Command1 
  60.       Caption         =   "OK"
  61.       Default         =   -1  'True
  62.       Height          =   375
  63.       Left            =   3480
  64.       TabIndex        =   3
  65.       Top             =   240
  66.       Width           =   1215
  67.    End
  68.    Begin VB.TextBox Text2 
  69.       Height          =   375
  70.       Left            =   1200
  71.       TabIndex        =   2
  72.       Text            =   "Text2"
  73.       Top             =   840
  74.       Width           =   855
  75.    End
  76.    Begin VB.TextBox Text1 
  77.       Height          =   375
  78.       Left            =   1800
  79.       TabIndex        =   0
  80.       Text            =   "Text1"
  81.       Top             =   360
  82.       Width           =   1215
  83.    End
  84.    Begin VB.Label Label4 
  85.       Caption         =   "&Top"
  86.       Height          =   255
  87.       Left            =   1800
  88.       TabIndex        =   10
  89.       Top             =   2400
  90.       Width           =   855
  91.    End
  92.    Begin VB.Label Label3 
  93.       Caption         =   "&Left"
  94.       Height          =   255
  95.       Left            =   240
  96.       TabIndex        =   9
  97.       Top             =   2400
  98.       Width           =   855
  99.    End
  100.    Begin VB.Label Label2 
  101.       Caption         =   "&Disposal Method"
  102.       Height          =   255
  103.       Left            =   240
  104.       TabIndex        =   6
  105.       Top             =   1440
  106.       Width           =   1335
  107.    End
  108.    Begin VB.Label Label1 
  109.       Caption         =   "&Delay (ms)"
  110.       Height          =   255
  111.       Left            =   240
  112.       TabIndex        =   1
  113.       Top             =   960
  114.       Width           =   855
  115.    End
  116. Attribute VB_Name = "FrameSet"
  117. Attribute VB_GlobalNameSpace = False
  118. Attribute VB_Creatable = False
  119. Attribute VB_PredeclaredId = True
  120. Attribute VB_Exposed = False
  121. Private Sub Check2_Click()
  122.     If Check2 Then
  123.         Text1.Enabled = True
  124.     Else
  125.         Text1.Enabled = False
  126.     End If
  127. End Sub
  128. Private Sub Command1_Click()
  129.      If Check2 Then
  130.         Main.ActiveForm.Lead1.BitmapEnableTransparency = True
  131.      Else
  132.         Main.ActiveForm.Lead1.BitmapEnableTransparency = False
  133.      End If
  134.      Main.ActiveForm.Lead1.BitmapTransparentColor = CLng(Text1)
  135.      Main.ActiveForm.Lead1.BitmapDelay = CLng(Text2)
  136.      Main.ActiveForm.Lead1.BitmapLeft = CInt(Text3)
  137.      Main.ActiveForm.Lead1.BitmapTop = CInt(Text4)
  138.      Main.ActiveForm.Lead1.BitmapDisposalMethod = Combo1.ListIndex
  139.     Unload FrameSet
  140. End Sub
  141. Private Sub Command2_Click()
  142.     Unload FrameSet
  143. End Sub
  144. Private Sub Form_Load()
  145.      
  146.      If Main.ActiveForm.Lead1.BitmapEnableTransparency Then
  147.         Check2 = 1
  148.      Else
  149.         Check2 = 0
  150.      End If
  151.      Text1 = "&H" + Hex(Main.ActiveForm.Lead1.BitmapTransparentColor)
  152.      Text2 = CStr(Main.ActiveForm.Lead1.BitmapDelay)
  153.      Text3 = CStr(Main.ActiveForm.Lead1.BitmapLeft)
  154.      Text4 = CStr(Main.ActiveForm.Lead1.BitmapTop)
  155.      Combo1.ListIndex = Main.ActiveForm.Lead1.BitmapDisposalMethod
  156. End Sub
  157.