home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Object = "{9AC21A05-1658-11D1-B2D1-F0F38CBFDD31}#4.0#0"; "WizardX.ocx"
- Begin VB.Form Form1
- Caption = "wxEvents Demo"
- ClientHeight = 4710
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 7200
- LinkTopic = "Form1"
- ScaleHeight = 4710
- ScaleWidth = 7200
- StartUpPosition = 3 'Windows Default
- Begin WizardX.WizardPane WizardPane3
- Height = 3420
- Left = 1725
- Top = 990
- Width = 4110
- _ExtentX = 7250
- _ExtentY = 6033
- BackColor = -2147483633
- BackStyle = 1
- Picture = "Form1.frx":0000
- Palette = "Form1.frx":001C
- PaletteMode = 3
- Caption = "WizardPane3"
- ForeColor = -2147483630
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- AutoSizeAtDesignTime= -1 'True
- BorderAtDesignTime= -1 'True
- Style = 0
- PaneIndex = 4
- BackButtonEnabled= -1 'True
- BackButtonPaneIndex= 2
- BackButtonVisible= -1 'True
- NextButtonEnabled= -1 'True
- NextButtonPaneIndex= 4
- NextButtonVisible= -1 'True
- IsFinishPane = -1 'True
- End
- Begin WizardX.WizardPane WizardPane2
- Height = 3420
- Left = 2325
- Top = 795
- Width = 4110
- _ExtentX = 7250
- _ExtentY = 6033
- BackColor = -2147483633
- BackStyle = 1
- Picture = "Form1.frx":0038
- Palette = "Form1.frx":0054
- PaletteMode = 3
- Caption = "WizardPane2"
- ForeColor = -2147483630
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- AutoSizeAtDesignTime= -1 'True
- BorderAtDesignTime= -1 'True
- Style = 0
- PaneIndex = 2
- BackButtonEnabled= -1 'True
- BackButtonPaneIndex= 1
- BackButtonVisible= -1 'True
- NextButtonEnabled= -1 'True
- NextButtonPaneIndex= 3
- NextButtonVisible= -1 'True
- IsFinishPane = 0 'False
- End
- Begin WizardX.WizardPane WizardPane1
- Height = 3420
- Left = 2025
- Top = 435
- Width = 4110
- _ExtentX = 7250
- _ExtentY = 6033
- BackColor = -2147483633
- BackStyle = 1
- Picture = "Form1.frx":0070
- Palette = "Form1.frx":008C
- PaletteMode = 3
- Caption = "This project demonstrates the WizardX event model."
- ForeColor = -2147483630
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- AutoSizeAtDesignTime= -1 'True
- BorderAtDesignTime= -1 'True
- Style = 0
- PaneIndex = 1
- BackButtonEnabled= 0 'False
- BackButtonPaneIndex= 0
- BackButtonVisible= -1 'True
- NextButtonEnabled= -1 'True
- NextButtonPaneIndex= 2
- NextButtonVisible= -1 'True
- IsFinishPane = 0 'False
- Begin VB.Label Label1
- Caption = "Watch the Immediate window when running through the panes."
- Height = 600
- Left = 0
- TabIndex = 1
- Top = 930
- Width = 3975
- End
- End
- Begin WizardX.WizardControl WizardControl1
- Height = 4485
- Left = 15
- TabIndex = 0
- Top = 15
- Width = 6540
- _ExtentX = 11536
- _ExtentY = 7911
- AutoSizeAtDesignTime= -1 'True
- BackButtonCaption= "< &Back"
- BackButtonEnabled= -1 'True
- BackButtonPaneIndex= 0
- BackButtonVisible= -1 'True
- BackColor = -2147483633
- BackStyle = 1
- BorderAtDesignTime= -1 'True
- CancelCaption = "Cancel"
- CurrentPaneIndex= 1
- FinishCaption = "Finish"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Image = "Form1.frx":00A8
- IsFinishPane = 0 'False
- NextButtonCaption= "Next >"
- NextButtonEnabled= -1 'True
- NextButtonPaneIndex= 2
- NextButtonVisible= -1 'True
- Palette = "Form1.frx":00C4
- PaletteMode = 3
- Picture = "Form1.frx":00E0
- Style = 0
- UseWizardPanes = -1 'True
- End
- Attribute VB_Name = "Form1"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- ' wxEvents.BAS
- ' demonstrates event model
- Private Sub WizardControl1_AfterPaneChange(ByVal NewPane As Long)
- Debug.Print "WizardControl1_AfterPaneChange(NewPane:=" & NewPane & ")"
- Debug.Print
- End Sub
- Private Sub WizardControl1_BeforePaneChange(ByVal OldPane As Long, NewPane As Long, Cancel As Boolean)
- Debug.Print "WizardControl1_BeforePaneChange(OldPane:=" & OldPane & ", NewPane:=" & NewPane & ", Cancel:= " & Format$(Cancel) & ")"
- End Sub
- Private Sub WizardControl1_CancelClick()
- Debug.Print "WizardControl1_CancelClick"
- Unload Me
- End Sub
- Private Sub WizardControl1_FinishClick()
- Debug.Print "WizardControl1_FinishClick"
- MsgBox "Finished", vbInformation
- Unload Me
- End Sub
- Private Sub WizardControl1_WizardPaneError(ByVal ErrorPane As Long)
- Debug.Print "WizardControl1_WizardPaneError(ErrorPane:=" & ErrorPane & ")"
- ' automatically fix "known error"
- If ErrorPane = 3 Then
- Debug.Print " Now setting WizardControl1.CurrentPaneIndex = 4"
- WizardControl1.CurrentPaneIndex = 4
- End If
- End Sub
- Private Sub WizardPane1_Reposition()
- Debug.Print "WizardPane1_Reposition"
- End Sub
- Private Sub WizardPane1_Validate(Cancel As Boolean)
- Debug.Print "WizardPane1_Validate(" & "Cancel:=" & Format$(Cancel) & ")"
- End Sub
- Private Sub WizardPane2_Reposition()
- Debug.Print "WizardPane2_Reposition"
- End Sub
- Private Sub WizardPane2_Validate(Cancel As Boolean)
- Debug.Print "WizardPane2_Validate(" & "Cancel:=" & Format$(Cancel) & ")"
- End Sub
- Private Sub WizardPane3_Reposition()
- Debug.Print "WizardPane3_Reposition"
- End Sub
- Private Sub WizardPane3_Validate(Cancel As Boolean)
- Debug.Print "WizardPane3_Validate(" & "Cancel:=" & Format$(Cancel) & ")"
- End Sub
-