home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form fMhan200
- Caption = "MhAnimate Example"
- ClientHeight = 4515
- ClientLeft = 1245
- ClientTop = 1920
- ClientWidth = 7365
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 5205
- Left = 1185
- LinkTopic = "Form1"
- ScaleHeight = 4515
- ScaleWidth = 7365
- Top = 1290
- Width = 7485
- Begin VB.PictureBox picStatus
- Align = 2 'Align Bottom
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 315
- Left = 0
- ScaleHeight = 255
- ScaleWidth = 7305
- TabIndex = 5
- Top = 4200
- Width = 7365
- End
- Begin VB.PictureBox Picture1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 1215
- Index = 0
- Left = 120
- Picture = "Mhan200.frx":0000
- ScaleHeight = 1185
- ScaleWidth = 1185
- TabIndex = 4
- Top = 2880
- Visible = 0 'False
- Width = 1215
- End
- Begin VB.PictureBox Picture1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 1215
- Index = 1
- Left = 1440
- Picture = "Mhan200.frx":24BA
- ScaleHeight = 1185
- ScaleWidth = 1185
- TabIndex = 3
- Top = 2880
- Visible = 0 'False
- Width = 1215
- End
- Begin VB.PictureBox Picture1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 1215
- Index = 2
- Left = 2760
- Picture = "Mhan200.frx":4974
- ScaleHeight = 1185
- ScaleWidth = 1185
- TabIndex = 2
- Top = 2880
- Visible = 0 'False
- Width = 1215
- End
- Begin VB.PictureBox Picture1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 1215
- Index = 3
- Left = 4080
- Picture = "Mhan200.frx":6E2E
- ScaleHeight = 1185
- ScaleWidth = 1185
- TabIndex = 1
- Top = 2880
- Visible = 0 'False
- Width = 1215
- End
- Begin VB.PictureBox Picture1
- Appearance = 0 'Flat
- BackColor = &H80000005&
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 1215
- Index = 4
- Left = 5400
- Picture = "Mhan200.frx":92E8
- ScaleHeight = 1185
- ScaleWidth = 1185
- TabIndex = 0
- Top = 2880
- Visible = 0 'False
- Width = 1215
- End
- Begin Mhan200Lib.MhAnimat MhAnimat1
- Height = 2655
- Left = 120
- TabIndex = 6
- Top = 120
- Width = 2535
- _Version = 65536
- _ExtentX = 4471
- _ExtentY = 4683
- _StockProps = 79
- Caption = "Animated Picture Box"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 8.25
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- TintColor = 16711935
- PictureUp = "Mhan200.frx":B7A2
- Autosize = 0 'False
- Alignment = 2
- FontTransparent = -1 'True
- MultiLine = 0 'False
- Value = 0
- PictureTop = 90
- PictureLeft = 390
- PictureRight = 345
- PictureBottom = 645
- CaptionTop = 2010
- CaptionLeft = 105
- CaptionRight = 105
- CaptionBottom = 150
- BorderColor = -2147483642
- LightColor = -2147483628
- OuterFillColor = -2147483633
- ShadowColor = -2147483632
- Style = 0
- TextColor = -2147483630
- TextFillColor = -2147483633
- Pictures = 4
- Interval = 800
- Min = 0
- Max = 4
- PlayDirection = 0
- Play = 1
- AutoRepeat = -1 'True
- WindowState = 0
- ColorDepth = 0
- FontStyle = 0
- End
- Begin VB.Menu mnuAutoRepeat
- Caption = "AutoRepeat"
- End
- Begin VB.Menu mnuBorder
- Caption = "Border"
- Begin VB.Menu mnuBorderColor
- Caption = "BorderColor"
- End
- End
- Begin VB.Menu mnuCaption
- Caption = "Caption"
- Begin VB.Menu mnuCaptionBottom
- Caption = "CaptionBottom"
- End
- Begin VB.Menu mnuCaptionLeft
- Caption = "CaptionLeft"
- End
- Begin VB.Menu mnuCaptionRight
- Caption = "CaptionRight"
- End
- Begin VB.Menu mnuCaptionTop
- Caption = "CaptionTop"
- End
- End
- Begin VB.Menu mnuColor
- Caption = "Color"
- Begin VB.Menu mnuColorDepth
- Caption = "ColorDepth"
- End
- Begin VB.Menu mnuLightColor
- Caption = "LightColor"
- End
- Begin VB.Menu mnuOuterFillColor
- Caption = "OuterFillColor"
- End
- Begin VB.Menu mnuShadowColor
- Caption = "ShadowColor"
- End
- Begin VB.Menu mnuTextColor
- Caption = "TextColor"
- End
- End
- Begin VB.Menu mnuMiscellaneous
- Caption = "Miscellaneous"
- Begin VB.Menu mnuFontStyle
- Caption = "FontStyle"
- End
- Begin VB.Menu mnuInterval
- Caption = "Interval"
- End
- Begin VB.Menu mnuMax
- Caption = "Max"
- End
- Begin VB.Menu mnuMin
- Caption = "Min"
- End
- Begin VB.Menu mnuMultiline
- Caption = "Multiline"
- End
- Begin VB.Menu mnuPlay
- Caption = "Play"
- End
- Begin VB.Menu mnuPlayDirection
- Caption = "PlayDirection"
- End
- Begin VB.Menu mnuValue
- Caption = "Value"
- End
- End
- Begin VB.Menu mnuPictureProp
- Caption = "PictureProp"
- Begin VB.Menu mnuPicture
- Caption = "Picture"
- End
- Begin VB.Menu mnuPictureBottom
- Caption = "PictureBottom"
- End
- Begin VB.Menu mnuPictureLeft
- Caption = "PictureLeft"
- End
- Begin VB.Menu mnuPictrureRight
- Caption = "PictrureRight"
- End
- Begin VB.Menu mnuPictures
- Caption = "Pictures"
- End
- Begin VB.Menu mnuPictureTop
- Caption = "PictureTop"
- End
- End
- Attribute VB_Name = "fMhan200"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Private Sub Form_Load()
- Me.Top = (Screen.Height - Me.Height) / 2
- Me.Left = (Screen.Width - Me.Width) / 2
- MhAnimat1.Picture(0) = Picture1(0).Picture
- MhAnimat1.Picture(1) = Picture1(1).Picture
- MhAnimat1.Picture(2) = Picture1(2).Picture
- MhAnimat1.Picture(3) = Picture1(3).Picture
- MhAnimat1.Picture(4) = Picture1(4).Picture
- End Sub
- Private Sub MhAnimat1_Change()
- picStatus.Cls
- picStatus.Print "Custom Event - MhAnimat1_Change"
- If picStatus.ForeColor = &H800000 Then
- picStatus.ForeColor = &H0&
- Else
- picStatus.ForeColor = &H800000
- End If
- End Sub
- Private Sub MhAnimat1_PlayEnd()
- picStatus.Cls
- picStatus.Print "Custom Event - MhAnimat1_PlayEnd"
- If picStatus.ForeColor = &H800000 Then
- picStatus.ForeColor = &H0&
- Else
- picStatus.ForeColor = &H800000
- End If
- End Sub
- Private Sub mnuAutoRepeat_Click()
- ReDim sgOptionArray(0 To 1)
- sgOptionArray(0) = "False"
- sgOptionArray(1) = "True"
- igOptionState = MhAnimat1.AutoRepeat
- MhAnimat1.AutoRepeat = GetOption("AutoRepeat")
- If MhAnimat1.AutoRepeat = 1 Then
- MhAnimat1.Play = 1
- End If
- End Sub
- Private Sub mnuBorderColor_Click()
- ColorSelect.Show 1
- MhAnimat1.BorderColor = lgCurrentColor
- End Sub
- Private Sub mnuCaptionBottom_Click()
- igRangeArray(0) = 0
- igRangeArray(1) = MhAnimat1.CaptionBottom
- igRangeArray(2) = 200
- MhAnimat1.CaptionBottom = GetRange("CaptionBottom")
- End Sub
- Private Sub mnuCaptionLeft_Click()
- igRangeArray(0) = 0
- igRangeArray(1) = MhAnimat1.CaptionLeft
- igRangeArray(2) = MhAnimat1.CaptionRight
- MhAnimat1.CaptionLeft = GetRange("CaptionLeft")
- End Sub
- Private Sub mnuCaptionRight_Click()
- igRangeArray(0) = MhAnimat1.CaptionLeft
- igRangeArray(1) = MhAnimat1.CaptionRight
- igRangeArray(2) = 200
- MhAnimat1.CaptionRight = GetRange("CaptionRight")
- End Sub
- Private Sub mnuCaptionTop_Click()
- igRangeArray(0) = MhAnimat1.CaptionBottom
- igRangeArray(1) = MhAnimat1.CaptionTop
- igRangeArray(2) = 2050
- MhAnimat1.CaptionTop = GetRange("CaptionTop")
- End Sub
- Private Sub mnuColorDepth_Click()
- ReDim sgOptionArray(0 To 1)
- sgOptionArray(0) = "16 Color"
- sgOptionArray(1) = "256 Color"
- igOptionState = MhAnimat1.ColorDepth
- MhAnimat1.ColorDepth = GetOption("ColorDepth")
- End Sub
- Private Sub mnuFontStyle_Click()
- ReDim sgOptionArray(0 To 4)
- sgOptionArray(0) = "None"
- sgOptionArray(1) = "Raised"
- sgOptionArray(2) = "Raised with more shading"
- sgOptionArray(3) = "Lowered"
- sgOptionArray(4) = "Lowered with more shading"
- igOptionState = MhAnimat1.FontStyle
- MhAnimat1.FontStyle = GetOption("FontStyle")
- End Sub
- Private Sub mnuInterval_Click()
- igRangeArray(0) = 500
- igRangeArray(1) = MhAnimat1.Interval
- igRangeArray(2) = 1500
- MhAnimat1.Interval = GetRange("Interval")
- End Sub
- Private Sub mnuLightColor_Click()
- ColorSelect.Show 1
- MhAnimat1.LightColor = lgCurrentColor
- End Sub
- Private Sub mnuMax_Click()
- igRangeArray(0) = MhAnimat1.Min
- igRangeArray(1) = MhAnimat1.Max
- igRangeArray(2) = 4
- MhAnimat1.Max = GetRange("Max")
- End Sub
- Private Sub mnuMin_Click()
- igRangeArray(0) = 0
- igRangeArray(1) = MhAnimat1.Min
- igRangeArray(2) = MhAnimat1.Max
- MhAnimat1.Min = GetRange("Min")
- End Sub
- Private Sub mnuMultiline_Click()
- ReDim sgOptionArray(0 To 1)
- sgOptionArray(0) = "False"
- sgOptionArray(1) = "True"
- igOptionState = MhAnimat1.MultiLine
- MhAnimat1.MultiLine = GetOption("Multiline")
- End Sub
- Private Sub mnuOuterFillColor_Click()
- ColorSelect.Show 1
- MhAnimat1.OuterFillColor = lgCurrentColor
- End Sub
- Private Sub mnuPictrureRight_Click()
- igRangeArray(0) = MhAnimat1.PictureLeft
- igRangeArray(1) = MhAnimat1.PictureRight
- igRangeArray(2) = 400
- MhAnimat1.PictureRight = GetRange("PictureRight")
- End Sub
- Private Sub mnuPicture_Click()
- MsgBox "An array of pictures to show. This example uses picture boxes as the source for pictures.", , ""
- End Sub
- Private Sub mnuPictureBottom_Click()
- igRangeArray(0) = MhAnimat1.PictureTop
- igRangeArray(1) = MhAnimat1.PictureBottom
- igRangeArray(2) = 700
- MhAnimat1.PictureBottom = GetRange("PictureBottom")
- End Sub
- Private Sub mnuPictureLeft_Click()
- igRangeArray(0) = 0
- igRangeArray(1) = MhAnimat1.PictureLeft
- igRangeArray(2) = MhAnimat1.PictureRight
- MhAnimat1.PictureLeft = GetRange("PictureLeft")
- End Sub
- Private Sub mnuPictures_Click()
- igRangeArray(0) = 4
- igRangeArray(1) = MhAnimat1.Pictures
- igRangeArray(2) = 100
- MhAnimat1.Pictures = GetRange("Pictures")
- End Sub
- Private Sub mnuPictureTop_Click()
- igRangeArray(0) = 0
- igRangeArray(1) = MhAnimat1.PictureTop
- igRangeArray(2) = MhAnimat1.PictureBottom
- MhAnimat1.PictureTop = GetRange("PictureTop")
- End Sub
- Private Sub mnuPlay_Click()
- ReDim sgOptionArray(0 To 1)
- sgOptionArray(0) = "Stop"
- sgOptionArray(1) = "Start"
- igOptionState = MhAnimat1.Play
- MhAnimat1.Play = GetOption("Play")
- End Sub
- Private Sub mnuPlayDirection_Click()
- ReDim sgOptionArray(0 To 1)
- sgOptionArray(0) = ".Min to .Max"
- sgOptionArray(1) = ".Max to .Min"
- igOptionState = MhAnimat1.PlayDirection
- MhAnimat1.PlayDirection = GetOption("PlayDirection")
- End Sub
- Private Sub mnuShadowColor_Click()
- ColorSelect.Show 1
- MhAnimat1.ShadowColor = lgCurrentColor
- End Sub
- Private Sub mnuTextColor_Click()
- ColorSelect.Show 1
- MhAnimat1.TextColor = lgCurrentColor
- End Sub
- Private Sub mnuValue_Click()
- igRangeArray(0) = MhAnimat1.Min
- igRangeArray(1) = MhAnimat1.Value
- igRangeArray(2) = MhAnimat1.Max
- MhAnimat1.Value = GetRange("Value")
- End Sub
-