home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmMaskWizard
- Caption = "Mask Wizard"
- ClientHeight = 4440
- ClientLeft = 2832
- ClientTop = 2892
- ClientWidth = 5568
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 700
- size = 7.8
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- ForeColor = &H80000008&
- Height = 4812
- Icon = "minp_wiz.frx":0000
- KeyPreview = -1 'True
- Left = 2784
- LinkTopic = "Form1"
- ScaleHeight = 4440
- ScaleWidth = 5568
- Top = 2568
- Width = 5664
- Begin VB.Frame fraSteps
- Caption = "Step 2 - Define The Valid Characters For Your 1st CMask"
- Height = 3432
- Index = 1
- Left = 6048
- TabIndex = 11
- Tag = "slide frame"
- Top = 828
- Visible = 0 'False
- Width = 5412
- Begin VB.Frame Frame2
- Height = 2208
- Left = 648
- TabIndex = 22
- Top = 468
- Width = 4080
- Begin VB.TextBox txtCMaskCharacters
- Height = 288
- Index = 0
- Left = 108
- ScrollBars = 1 'Horizontal
- TabIndex = 2
- Text = "ABCabc"
- Top = 1620
- Width = 3792
- End
- Begin VB.Label lblCMaskName
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- Caption = "A"
- Height = 228
- Index = 0
- Left = 1872
- TabIndex = 33
- Top = 684
- Width = 336
- End
- Begin VB.Label Label6
- Alignment = 2 'Center
- Caption = "are the following characters..."
- Height = 336
- Left = 144
- TabIndex = 24
- Top = 1116
- Width = 3792
- End
- Begin VB.Label Label3
- Alignment = 2 'Center
- Caption = "The valid characters for the CMask called"
- Height = 336
- Left = 144
- TabIndex = 23
- Top = 252
- Width = 3792
- End
- End
- Begin Threed.SSPanel SSPanel2
- Height = 480
- Left = 648
- TabIndex = 25
- Top = 2772
- Width = 4080
- _Version = 65536
- _ExtentX = 7197
- _ExtentY = 847
- _StockProps = 15
- Caption = "Fill the bottem text box with the characters that you want in your first CMask"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 7.8
- underline = 0 'False
- italic = -1 'True
- strikethrough = 0 'False
- EndProperty
- BevelWidth = 0
- End
- End
- Begin VB.Frame fraSteps
- Caption = "Step 3 - Define The Valid Characters For Your 2nd CMask"
- Height = 3432
- Index = 2
- Left = 5904
- TabIndex = 16
- Tag = "slide frame"
- Top = 576
- Width = 5412
- Begin VB.Frame Frame3
- Height = 2208
- Left = 648
- TabIndex = 30
- Top = 468
- Width = 4080
- Begin VB.TextBox txtCMaskCharacters
- Height = 288
- Index = 1
- Left = 108
- ScrollBars = 1 'Horizontal
- TabIndex = 3
- Text = "0123456789"
- Top = 1620
- Width = 3792
- End
- Begin VB.Label lblCMaskName
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- Caption = "9"
- Height = 228
- Index = 1
- Left = 1872
- TabIndex = 34
- Top = 684
- Width = 336
- End
- Begin VB.Label Label8
- Alignment = 2 'Center
- Caption = "The valid characters for the CMask called"
- Height = 336
- Left = 144
- TabIndex = 32
- Top = 252
- Width = 3792
- End
- Begin VB.Label Label7
- Alignment = 2 'Center
- Caption = "are the following characters..."
- Height = 336
- Left = 144
- TabIndex = 31
- Top = 1116
- Width = 3792
- End
- End
- Begin Threed.SSPanel SSPanel3
- Height = 480
- Left = 648
- TabIndex = 29
- Top = 2772
- Width = 4080
- _Version = 65536
- _ExtentX = 7197
- _ExtentY = 847
- _StockProps = 15
- Caption = "Fill the bottem text box with the characters that you want in your second CMask"
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 7.8
- underline = 0 'False
- italic = -1 'True
- strikethrough = 0 'False
- EndProperty
- BevelWidth = 0
- End
- End
- Begin VB.Timer tmrLight
- Interval = 501
- Left = 504
- Top = 4860
- End
- Begin VB.Frame fraSteps
- Caption = "Step 4 - Build Your Input Mask"
- Height = 3432
- Index = 3
- Left = 5760
- TabIndex = 15
- Tag = "slide frame"
- Top = 324
- Width = 5412
- Begin VB.TextBox txtCMaskCharactersName
- Height = 288
- Index = 1
- Left = 2844
- Locked = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 6
- Text = "0123456789"
- Top = 1656
- Width = 1992
- End
- Begin VB.TextBox txtCMaskCharactersName
- Height = 288
- Index = 0
- Left = 396
- Locked = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 5
- Text = "ABCabc"
- Top = 1656
- Width = 1992
- End
- Begin VB.TextBox txtMask
- Height = 288
- Left = 1440
- TabIndex = 4
- Text = "AAA9999"
- Top = 2952
- Width = 2532
- End
- Begin VB.Label lblCMaskName
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- Caption = "9"
- Height = 300
- Index = 3
- Left = 3672
- TabIndex = 36
- Top = 756
- Width = 336
- End
- Begin VB.Label lblCMaskName
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- Caption = "A"
- Height = 300
- Index = 2
- Left = 1224
- TabIndex = 35
- Top = 756
- Width = 336
- End
- Begin VB.Label Label11
- Alignment = 2 'Center
- Caption = "...the following sets of characters, respectively, can be entered by the user:"
- Height = 480
- Left = 108
- TabIndex = 28
- Top = 1116
- Width = 5196
- End
- Begin VB.Label Label10
- Alignment = 2 'Center
- Caption = "In each position of the control which has either one of these characters..."
- Height = 408
- Left = 108
- TabIndex = 27
- Top = 324
- Width = 5196
- End
- Begin VB.Label Label9
- Alignment = 2 'Center
- Caption = $"minp_wiz.frx":0442
- Height = 732
- Left = 108
- TabIndex = 26
- Top = 2160
- Width = 5196
- End
- End
- Begin VB.Frame fraSteps
- Caption = "Step 1 - Give Each Character Mask Set An Arbitrary..."
- Height = 3432
- Index = 0
- Left = 72
- TabIndex = 10
- Tag = "slide frame"
- Top = 108
- Width = 5412
- Begin VB.Frame Frame1
- Height = 840
- Left = 684
- TabIndex = 19
- Top = 2088
- Width = 4044
- Begin VB.TextBox txtCMask
- Height = 288
- Index = 0
- Left = 1440
- TabIndex = 0
- Text = "A"
- Top = 324
- Width = 300
- End
- Begin VB.TextBox txtCMask
- Height = 288
- Index = 1
- Left = 3024
- MaxLength = 1
- TabIndex = 1
- Text = "9"
- Top = 324
- Width = 300
- End
- Begin VB.Label Label5
- Alignment = 1 'Right Justify
- Caption = "CMask(1)"
- Height = 264
- Left = 1764
- TabIndex = 21
- Top = 360
- Width = 1164
- End
- Begin VB.Label Label4
- Alignment = 1 'Right Justify
- Caption = "CMask(0)"
- Height = 264
- Left = 72
- TabIndex = 20
- Top = 360
- Width = 1272
- End
- End
- Begin VB.Label Label2
- Caption = $"minp_wiz.frx":04F3
- Height = 1020
- Left = 324
- TabIndex = 18
- Top = 936
- Width = 4764
- End
- Begin VB.Label Label1
- Caption = "...Name Which Be Used Later To Reference It"
- Height = 444
- Left = 792
- TabIndex = 17
- Top = 216
- Width = 4332
- End
- End
- Begin VB.CommandButton cmdSlide
- Appearance = 0 'Flat
- BackColor = &H00D9A8AE&
- Caption = "< &Back"
- Enabled = 0 'False
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 7.8
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 372
- Index = 0
- Left = 1752
- TabIndex = 7
- Top = 3984
- Width = 1212
- End
- Begin VB.CommandButton cmdSlide
- Appearance = 0 'Flat
- BackColor = &H00D9A8AE&
- Caption = "&Next >"
- Default = -1 'True
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 7.8
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 372
- Index = 1
- Left = 2952
- TabIndex = 8
- Top = 3984
- Width = 1212
- End
- Begin VB.Timer tmrStatusLine
- Enabled = 0 'False
- Left = 144
- Top = 4860
- End
- Begin Threed.SSPanel panStatusLine
- Height = 264
- Left = 72
- TabIndex = 13
- Top = 3636
- Width = 5412
- _Version = 65536
- _ExtentX = 9546
- _ExtentY = 466
- _StockProps = 15
- Caption = "Ready..."
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 7.8
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- BevelWidth = 0
- Font3D = 3
- End
- Begin Threed.SSPanel SSPanel1
- Height = 24
- Left = -1800
- TabIndex = 14
- Top = 0
- Width = 9336
- _Version = 65536
- _ExtentX = 16468
- _ExtentY = 42
- _StockProps = 15
- Caption = "SSPanel1"
- BackColor = 12038095
- BevelOuter = 1
- End
- Begin VB.CommandButton cmdClose
- Appearance = 0 'Flat
- BackColor = &H00D9A8AE&
- Cancel = -1 'True
- Caption = "&Close"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 7.8
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 372
- Left = 4284
- TabIndex = 9
- Top = 3996
- Width = 1212
- End
- Begin VB.Frame fraSteps
- Caption = "Step 5 - All Done!"
- Height = 3432
- Index = 4
- Left = 5616
- TabIndex = 12
- Tag = "slide frame"
- Top = 72
- Visible = 0 'False
- Width = 5412
- Begin VB.TextBox txtCMaskCharactersName
- Height = 288
- Index = 3
- Left = 3096
- Locked = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 43
- Text = "0123456789"
- Top = 1872
- Width = 2064
- End
- Begin VB.TextBox txtCMaskCharactersName
- Height = 288
- Index = 2
- Left = 3096
- Locked = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 42
- Text = "ABCabc"
- Top = 1476
- Width = 2064
- End
- Begin VB.TextBox txtMaskDefinition
- Height = 288
- Left = 1476
- Locked = -1 'True
- TabIndex = 37
- TabStop = 0 'False
- Top = 2556
- Width = 3684
- End
- Begin Threed.SSPanel SSPanel4
- Height = 912
- Left = 252
- TabIndex = 41
- Top = 324
- Width = 4944
- _Version = 65536
- _ExtentX = 8721
- _ExtentY = 1609
- _StockProps = 15
- Caption = $"minp_wiz.frx":05B6
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 9.6
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- BevelWidth = 0
- Font3D = 3
- End
- Begin VB.Label Label17
- Alignment = 2 'Center
- Caption = "="
- Height = 228
- Left = 2700
- TabIndex = 49
- Top = 1512
- Width = 372
- End
- Begin VB.Label Label13
- Alignment = 2 'Center
- Caption = "="
- Height = 228
- Left = 2700
- TabIndex = 47
- Top = 1908
- Width = 372
- End
- Begin VB.Label lblCMaskName
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- Caption = "9"
- Height = 228
- Index = 5
- Left = 2304
- TabIndex = 45
- Top = 1908
- Width = 336
- End
- Begin VB.Label lblCMaskName
- Alignment = 2 'Center
- BorderStyle = 1 'Fixed Single
- Caption = "A"
- Height = 228
- Index = 4
- Left = 2304
- TabIndex = 44
- Top = 1512
- Width = 336
- End
- Begin VB.Label Label15
- Alignment = 1 'Right Justify
- Caption = "Mask Definition"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 7.8
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 264
- Left = 108
- TabIndex = 40
- Top = 2592
- Width = 1308
- End
- Begin VB.Label Label14
- Alignment = 1 'Right Justify
- Caption = "MhMaskInput"
- BeginProperty Font
- name = "MS Sans Serif"
- charset = 0
- weight = 400
- size = 7.8
- underline = 0 'False
- italic = 0 'False
- strikethrough = 0 'False
- EndProperty
- Height = 264
- Left = 108
- TabIndex = 39
- Top = 2952
- Width = 1308
- End
- Begin MhinmskLib.MhMaskInput MhMaskInputWiz
- Height = 300
- Left = 1476
- TabIndex = 38
- Top = 2916
- Width = 3684
- _Version = 65536
- _ExtentX = 6498
- _ExtentY = 529
- _StockProps = 77
- TintColor = 16711935
- BevelSize = 1
- BorderColor = -2147483642
- FillColor = -2147483633
- LightColor = -2147483628
- ShadowColor = -2147483632
- TextColor = -2147483630
- Text = "MhMaskInputWiz"
- Indent = 2
- AutoHScroll = -1 'True
- CaretColor = -2147483642
- CaretVisible = -1 'True
- VAlignment = 0
- INIFile = "mhmask.ini"
- TextLength = 32
- MousePointer = 3
- CM(0) = ""
- CMC(0) = ""
- CP(0) = ""
- CM(1) = ""
- CMC(1) = ""
- CP(1) = ""
- CM(2) = ""
- CMC(2) = ""
- CP(2) = ""
- CM(3) = ""
- CMC(3) = ""
- CP(3) = ""
- CM(4) = ""
- CMC(4) = ""
- CP(4) = ""
- CM(5) = ""
- CMC(5) = ""
- CP(5) = ""
- CM(6) = ""
- CMC(6) = ""
- CP(6) = ""
- CM(7) = ""
- CMC(7) = ""
- CP(7) = ""
- CM(8) = ""
- CMC(8) = ""
- CP(8) = ""
- CM(9) = ""
- CMC(9) = ""
- CP(9) = ""
- CM(10) = ""
- CMC(10) = ""
- CP(10) = ""
- CM(11) = ""
- CMC(11) = ""
- CP(11) = ""
- CM(12) = ""
- CMC(12) = ""
- CP(12) = ""
- CM(13) = ""
- CMC(13) = ""
- CP(13) = ""
- CM(14) = ""
- CMC(14) = ""
- CP(14) = ""
- CM(15) = ""
- CMC(15) = ""
- CP(15) = ""
- CM(16) = ""
- CMC(16) = ""
- CP(16) = ""
- CM(17) = ""
- CMC(17) = ""
- CP(17) = ""
- CM(18) = ""
- CMC(18) = ""
- CP(18) = ""
- CM(19) = ""
- CMC(19) = ""
- CP(19) = ""
- CM(20) = ""
- CMC(20) = ""
- CP(20) = ""
- CM(21) = ""
- CMC(21) = ""
- CP(21) = ""
- CM(22) = ""
- CMC(22) = ""
- CP(22) = ""
- CM(23) = ""
- CMC(23) = ""
- CP(23) = ""
- CM(24) = ""
- CMC(24) = ""
- CP(24) = ""
- CM(25) = ""
- CMC(25) = ""
- CP(25) = ""
- CM(26) = ""
- CMC(26) = ""
- CP(26) = ""
- CM(27) = ""
- CMC(27) = ""
- CP(27) = ""
- CM(28) = ""
- CMC(28) = ""
- CP(28) = ""
- CM(29) = ""
- CMC(29) = ""
- CP(29) = ""
- CM(30) = ""
- CMC(30) = ""
- CP(30) = ""
- CM(31) = ""
- CMC(31) = ""
- CP(31) = ""
- CM(32) = ""
- CMC(32) = ""
- CP(32) = ""
- CM(33) = ""
- CMC(33) = ""
- CP(33) = ""
- CM(34) = ""
- CMC(34) = ""
- CP(34) = ""
- CM(35) = ""
- CMC(35) = ""
- CP(35) = ""
- CM(36) = ""
- CMC(36) = ""
- CP(36) = ""
- CM(37) = ""
- CMC(37) = ""
- CP(37) = ""
- CM(38) = ""
- CMC(38) = ""
- CP(38) = ""
- CM(39) = ""
- CMC(39) = ""
- CP(39) = ""
- CM(40) = ""
- CMC(40) = ""
- CP(40) = ""
- CM(41) = ""
- CMC(41) = ""
- CP(41) = ""
- CM(42) = ""
- CMC(42) = ""
- CP(42) = ""
- CM(43) = ""
- CMC(43) = ""
- CP(43) = ""
- CM(44) = ""
- CMC(44) = ""
- CP(44) = ""
- CM(45) = ""
- CMC(45) = ""
- CP(45) = ""
- CM(46) = ""
- CMC(46) = ""
- CP(46) = ""
- CM(47) = ""
- CMC(47) = ""
- CP(47) = ""
- CM(48) = ""
- CMC(48) = ""
- CP(48) = ""
- CM(49) = ""
- CMC(49) = ""
- CP(49) = ""
- CM(50) = ""
- CMC(50) = ""
- CP(50) = ""
- CM(51) = ""
- CMC(51) = ""
- CP(51) = ""
- CM(52) = ""
- CMC(52) = ""
- CP(52) = ""
- CM(53) = ""
- CMC(53) = ""
- CP(53) = ""
- CM(54) = ""
- CMC(54) = ""
- CP(54) = ""
- CM(55) = ""
- CMC(55) = ""
- CP(55) = ""
- CM(56) = ""
- CMC(56) = ""
- CP(56) = ""
- CM(57) = ""
- CMC(57) = ""
- CP(57) = ""
- CM(58) = ""
- CMC(58) = ""
- CP(58) = ""
- CM(59) = ""
- CMC(59) = ""
- CP(59) = ""
- CM(60) = ""
- CMC(60) = ""
- CP(60) = ""
- CM(61) = ""
- CMC(61) = ""
- CP(61) = ""
- CM(62) = ""
- CMC(62) = ""
- CP(62) = ""
- CM(63) = ""
- CMC(63) = ""
- CP(63) = ""
- CM(64) = ""
- CMC(64) = ""
- CP(64) = ""
- CM(65) = ""
- CMC(65) = ""
- CP(65) = ""
- CM(66) = ""
- CMC(66) = ""
- CP(66) = ""
- CM(67) = ""
- CMC(67) = ""
- CP(67) = ""
- CM(68) = ""
- CMC(68) = ""
- CP(68) = ""
- CM(69) = ""
- CMC(69) = ""
- CP(69) = ""
- CM(70) = ""
- CMC(70) = ""
- CP(70) = ""
- CM(71) = ""
- CMC(71) = ""
- CP(71) = ""
- CM(72) = ""
- CMC(72) = ""
- CP(72) = ""
- CM(73) = ""
- CMC(73) = ""
- CP(73) = ""
- CM(74) = ""
- CMC(74) = ""
- CP(74) = ""
- CM(75) = ""
- CMC(75) = ""
- CP(75) = ""
- CM(76) = ""
- CMC(76) = ""
- CP(76) = ""
- CM(77) = ""
- CMC(77) = ""
- CP(77) = ""
- CM(78) = ""
- CMC(78) = ""
- CP(78) = ""
- CM(79) = ""
- CMC(79) = ""
- CP(79) = ""
- CM(80) = ""
- CMC(80) = ""
- CP(80) = ""
- CM(81) = ""
- CMC(81) = ""
- CP(81) = ""
- CM(82) = ""
- CMC(82) = ""
- CP(82) = ""
- CM(83) = ""
- CMC(83) = ""
- CP(83) = ""
- CM(84) = ""
- CMC(84) = ""
- CP(84) = ""
- CM(85) = ""
- CMC(85) = ""
- CP(85) = ""
- CM(86) = ""
- CMC(86) = ""
- CP(86) = ""
- CM(87) = ""
- CMC(87) = ""
- CP(87) = ""
- CM(88) = ""
- CMC(88) = ""
- CP(88) = ""
- CM(89) = ""
- CMC(89) = ""
- CP(89) = ""
- CM(90) = ""
- CMC(90) = ""
- CP(90) = ""
- CM(91) = ""
- CMC(91) = ""
- CP(91) = ""
- CM(92) = ""
- CMC(92) = ""
- CP(92) = ""
- CM(93) = ""
- CMC(93) = ""
- CP(93) = ""
- CM(94) = ""
- CMC(94) = ""
- CP(94) = ""
- CM(95) = ""
- CMC(95) = ""
- CP(95) = ""
- CM(96) = ""
- CMC(96) = ""
- CP(96) = ""
- CM(97) = ""
- CMC(97) = ""
- CP(97) = ""
- CM(98) = ""
- CMC(98) = ""
- CP(98) = ""
- CM(99) = ""
- CMC(99) = ""
- CP(99) = ""
- CM(100) = ""
- CMC(100) = ""
- CP(100) = ""
- CM(101) = ""
- CMC(101) = ""
- CP(101) = ""
- CM(102) = ""
- CMC(102) = ""
- CP(102) = ""
- CM(103) = ""
- CMC(103) = ""
- CP(103) = ""
- CM(104) = ""
- CMC(104) = ""
- CP(104) = ""
- CM(105) = ""
- CMC(105) = ""
- CP(105) = ""
- CM(106) = ""
- CMC(106) = ""
- CP(106) = ""
- CM(107) = ""
- CMC(107) = ""
- CP(107) = ""
- CM(108) = ""
- CMC(108) = ""
- CP(108) = ""
- CM(109) = ""
- CMC(109) = ""
- CP(109) = ""
- CM(110) = ""
- CMC(110) = ""
- CP(110) = ""
- CM(111) = ""
- CMC(111) = ""
- CP(111) = ""
- CM(112) = ""
- CMC(112) = ""
- CP(112) = ""
- CM(113) = ""
- CMC(113) = ""
- CP(113) = ""
- CM(114) = ""
- CMC(114) = ""
- CP(114) = ""
- CM(115) = ""
- CMC(115) = ""
- CP(115) = ""
- CM(116) = ""
- CMC(116) = ""
- CP(116) = ""
- CM(117) = ""
- CMC(117) = ""
- CP(117) = ""
- CM(118) = ""
- CMC(118) = ""
- CP(118) = ""
- CM(119) = ""
- CMC(119) = ""
- CP(119) = ""
- CM(120) = ""
- CMC(120) = ""
- CP(120) = ""
- CM(121) = ""
- CMC(121) = ""
- CP(121) = ""
- CM(122) = ""
- CMC(122) = ""
- CP(122) = ""
- CM(123) = ""
- CMC(123) = ""
- CP(123) = ""
- CM(124) = ""
- CMC(124) = ""
- CP(124) = ""
- CM(125) = ""
- CMC(125) = ""
- CP(125) = ""
- CM(126) = ""
- CMC(126) = ""
- CP(126) = ""
- CM(127) = ""
- CMC(127) = ""
- CP(127) = ""
- CM(128) = ""
- CMC(128) = ""
- CP(128) = ""
- CM(129) = ""
- CMC(129) = ""
- CP(129) = ""
- CM(130) = ""
- CMC(130) = ""
- CP(130) = ""
- CM(131) = ""
- CMC(131) = ""
- CP(131) = ""
- CM(132) = ""
- CMC(132) = ""
- CP(132) = ""
- CM(133) = ""
- CMC(133) = ""
- CP(133) = ""
- CM(134) = ""
- CMC(134) = ""
- CP(134) = ""
- CM(135) = ""
- CMC(135) = ""
- CP(135) = ""
- CM(136) = ""
- CMC(136) = ""
- CP(136) = ""
- CM(137) = ""
- CMC(137) = ""
- CP(137) = ""
- CM(138) = ""
- CMC(138) = ""
- CP(138) = ""
- CM(139) = ""
- CMC(139) = ""
- CP(139) = ""
- CM(140) = ""
- CMC(140) = ""
- CP(140) = ""
- CM(141) = ""
- CMC(141) = ""
- CP(141) = ""
- CM(142) = ""
- CMC(142) = ""
- CP(142) = ""
- CM(143) = ""
- CMC(143) = ""
- CP(143) = ""
- CM(144) = ""
- CMC(144) = ""
- CP(144) = ""
- CM(145) = ""
- CMC(145) = ""
- CP(145) = ""
- CM(146) = ""
- CMC(146) = ""
- CP(146) = ""
- CM(147) = ""
- CMC(147) = ""
- CP(147) = ""
- CM(148) = ""
- CMC(148) = ""
- CP(148) = ""
- CM(149) = ""
- CMC(149) = ""
- CP(149) = ""
- CM(150) = ""
- CMC(150) = ""
- CP(150) = ""
- CM(151) = ""
- CMC(151) = ""
- CP(151) = ""
- CM(152) = ""
- CMC(152) = ""
- CP(152) = ""
- CM(153) = ""
- CMC(153) = ""
- CP(153) = ""
- CM(154) = ""
- CMC(154) = ""
- CP(154) = ""
- CM(155) = ""
- CMC(155) = ""
- CP(155) = ""
- CM(156) = ""
- CMC(156) = ""
- CP(156) = ""
- CM(157) = ""
- CMC(157) = ""
- CP(157) = ""
- CM(158) = ""
- CMC(158) = ""
- CP(158) = ""
- CM(159) = ""
- CMC(159) = ""
- CP(159) = ""
- CM(160) = ""
- CMC(160) = ""
- CP(160) = ""
- CM(161) = ""
- CMC(161) = ""
- CP(161) = ""
- CM(162) = ""
- CMC(162) = ""
- CP(162) = ""
- CM(163) = ""
- CMC(163) = ""
- CP(163) = ""
- CM(164) = ""
- CMC(164) = ""
- CP(164) = ""
- CM(165) = ""
- CMC(165) = ""
- CP(165) = ""
- CM(166) = ""
- CMC(166) = ""
- CP(166) = ""
- CM(167) = ""
- CMC(167) = ""
- CP(167) = ""
- CM(168) = ""
- CMC(168) = ""
- CP(168) = ""
- CM(169) = ""
- CMC(169) = ""
- CP(169) = ""
- CM(170) = ""
- CMC(170) = ""
- CP(170) = ""
- CM(171) = ""
- CMC(171) = ""
- CP(171) = ""
- CM(172) = ""
- CMC(172) = ""
- CP(172) = ""
- CM(173) = ""
- CMC(173) = ""
- CP(173) = ""
- CM(174) = ""
- CMC(174) = ""
- CP(174) = ""
- CM(175) = ""
- CMC(175) = ""
- CP(175) = ""
- CM(176) = ""
- CMC(176) = ""
- CP(176) = ""
- CM(177) = ""
- CMC(177) = ""
- CP(177) = ""
- CM(178) = ""
- CMC(178) = ""
- CP(178) = ""
- CM(179) = ""
- CMC(179) = ""
- CP(179) = ""
- CM(180) = ""
- CMC(180) = ""
- CP(180) = ""
- CM(181) = ""
- CMC(181) = ""
- CP(181) = ""
- CM(182) = ""
- CMC(182) = ""
- CP(182) = ""
- CM(183) = ""
- CMC(183) = ""
- CP(183) = ""
- CM(184) = ""
- CMC(184) = ""
- CP(184) = ""
- CM(185) = ""
- CMC(185) = ""
- CP(185) = ""
- CM(186) = ""
- CMC(186) = ""
- CP(186) = ""
- CM(187) = ""
- CMC(187) = ""
- CP(187) = ""
- CM(188) = ""
- CMC(188) = ""
- CP(188) = ""
- CM(189) = ""
- CMC(189) = ""
- CP(189) = ""
- CM(190) = ""
- CMC(190) = ""
- CP(190) = ""
- CM(191) = ""
- CMC(191) = ""
- CP(191) = ""
- CM(192) = ""
- CMC(192) = ""
- CP(192) = ""
- CM(193) = ""
- CMC(193) = ""
- CP(193) = ""
- CM(194) = ""
- CMC(194) = ""
- CP(194) = ""
- CM(195) = ""
- CMC(195) = ""
- CP(195) = ""
- CM(196) = ""
- CMC(196) = ""
- CP(196) = ""
- CM(197) = ""
- CMC(197) = ""
- CP(197) = ""
- CM(198) = ""
- CMC(198) = ""
- CP(198) = ""
- CM(199) = ""
- CMC(199) = ""
- CP(199) = ""
- CM(200) = ""
- CMC(200) = ""
- CP(200) = ""
- CM(201) = ""
- CMC(201) = ""
- CP(201) = ""
- CM(202) = ""
- CMC(202) = ""
- CP(202) = ""
- CM(203) = ""
- CMC(203) = ""
- CP(203) = ""
- CM(204) = ""
- CMC(204) = ""
- CP(204) = ""
- CM(205) = ""
- CMC(205) = ""
- CP(205) = ""
- CM(206) = ""
- CMC(206) = ""
- CP(206) = ""
- CM(207) = ""
- CMC(207) = ""
- CP(207) = ""
- CM(208) = ""
- CMC(208) = ""
- CP(208) = ""
- CM(209) = ""
- CMC(209) = ""
- CP(209) = ""
- CM(210) = ""
- CMC(210) = ""
- CP(210) = ""
- CM(211) = ""
- CMC(211) = ""
- CP(211) = ""
- CM(212) = ""
- CMC(212) = ""
- CP(212) = ""
- CM(213) = ""
- CMC(213) = ""
- CP(213) = ""
- CM(214) = ""
- CMC(214) = ""
- CP(214) = ""
- CM(215) = ""
- CMC(215) = ""
- CP(215) = ""
- CM(216) = ""
- CMC(216) = ""
- CP(216) = ""
- CM(217) = ""
- CMC(217) = ""
- CP(217) = ""
- CM(218) = ""
- CMC(218) = ""
- CP(218) = ""
- CM(219) = ""
- CMC(219) = ""
- CP(219) = ""
- CM(220) = ""
- CMC(220) = ""
- CP(220) = ""
- CM(221) = ""
- CMC(221) = ""
- CP(221) = ""
- CM(222) = ""
- CMC(222) = ""
- CP(222) = ""
- CM(223) = ""
- CMC(223) = ""
- CP(223) = ""
- CM(224) = ""
- CMC(224) = ""
- CP(224) = ""
- CM(225) = ""
- CMC(225) = ""
- CP(225) = ""
- CM(226) = ""
- CMC(226) = ""
- CP(226) = ""
- CM(227) = ""
- CMC(227) = ""
- CP(227) = ""
- CM(228) = ""
- CMC(228) = ""
- CP(228) = ""
- CM(229) = ""
- CMC(229) = ""
- CP(229) = ""
- CM(230) = ""
- CMC(230) = ""
- CP(230) = ""
- CM(231) = ""
- CMC(231) = ""
- CP(231) = ""
- CM(232) = ""
- CMC(232) = ""
- CP(232) = ""
- CM(233) = ""
- CMC(233) = ""
- CP(233) = ""
- CM(234) = ""
- CMC(234) = ""
- CP(234) = ""
- CM(235) = ""
- CMC(235) = ""
- CP(235) = ""
- CM(236) = ""
- CMC(236) = ""
- CP(236) = ""
- CM(237) = ""
- CMC(237) = ""
- CP(237) = ""
- CM(238) = ""
- CMC(238) = ""
- CP(238) = ""
- CM(239) = ""
- CMC(239) = ""
- CP(239) = ""
- CM(240) = ""
- CMC(240) = ""
- CP(240) = ""
- CM(241) = ""
- CMC(241) = ""
- CP(241) = ""
- CM(242) = ""
- CMC(242) = ""
- CP(242) = ""
- CM(243) = ""
- CMC(243) = ""
- CP(243) = ""
- CM(244) = ""
- CMC(244) = ""
- CP(244) = ""
- CM(245) = ""
- CMC(245) = ""
- CP(245) = ""
- CM(246) = ""
- CMC(246) = ""
- CP(246) = ""
- CM(247) = ""
- CMC(247) = ""
- CP(247) = ""
- CM(248) = ""
- CMC(248) = ""
- CP(248) = ""
- CM(249) = ""
- CMC(249) = ""
- CP(249) = ""
- CM(250) = ""
- CMC(250) = ""
- CP(250) = ""
- CM(251) = ""
- CMC(251) = ""
- CP(251) = ""
- CM(252) = ""
- CMC(252) = ""
- CP(252) = ""
- CM(253) = ""
- CMC(253) = ""
- CP(253) = ""
- CM(254) = ""
- CMC(254) = ""
- CP(254) = ""
- CM(255) = ""
- CMC(255) = ""
- CP(255) = ""
- End
- Begin VB.Label Label16
- Caption = "Valid chars. for each"
- Height = 264
- Left = 324
- TabIndex = 48
- Top = 1512
- Width = 1956
- End
- Begin VB.Label Label12
- Caption = "Valid chars. for each"
- Height = 264
- Left = 324
- TabIndex = 46
- Top = 1908
- Width = 1956
- End
- End
- Begin VB.Image imgLight
- Height = 384
- Index = 0
- Left = 108
- Picture = "minp_wiz.frx":0655
- Top = 4464
- Visible = 0 'False
- Width = 384
- End
- Begin VB.Image imgLight
- Height = 384
- Index = 1
- Left = 468
- Picture = "minp_wiz.frx":0A97
- Top = 4464
- Visible = 0 'False
- Width = 384
- End
- Attribute VB_Name = "frmMaskWizard"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit ' always
- Private m_oParentForm As Form ' the form from which this form was launched
- Private bShiftKeyDown As Boolean ' used to close parent form if <Shift> held during close
- ' used to keep from over-writing the user's mask with a default mask
- Private bMaskChanged As Boolean
- ' used to keep from over-writing the user's mask chars with a default mask chars
- Private bMaskChars1Changed As Boolean, bMaskChars2Changed As Boolean
- Private iNumberOfSlides As Byte, iCurrentSlide As Byte
- ' This method moves to the demo's next slide if not already on the last slide
- Private Sub ShowSlideNext()
- ' if we are not on the last slide then choose the next slide as the current slide
- If iCurrentSlide < iNumberOfSlides Then iCurrentSlide = iCurrentSlide + 1
- ' have the user interface move to this new slide (view)
- SetupFrames (iCurrentSlide)
- End Sub
- ' This method returns to the demo's previous slide if not already on the first slide
- Private Sub ShowSlidePrevious()
- ' if we are not on the first slide then make the previouse slide the current slide
- If iCurrentSlide >= 1 Then iCurrentSlide = iCurrentSlide - 1
- ' have the user interface move to this new slide (view)
- SetupFrames (iCurrentSlide)
- End Sub
- ' This procedure sets the status line text to the text in sMessageText parameter
- ' and keeps the text there for the time period specified (in milliseconds) by the
- ' vTimePeriod parameter. This procedure uses the timer on the demo's mDemoFace form to
- ' get a callback when the vTimePeriod has elapsed.
- ' sMessageText - text to be displayed
- ' [vTimePeriod] - time period (in milliseconds) to display the message. If not specfied a value
- ' of 3000 is used.
- ' [vOverRide] - when set to True the sMessageText is displayed immediately even if there is a
- ' message currently being displayed. If set to False (or not specified) and there is a message
- ' being displayed the new message is placed in a single item queue and displayed when the time
- ' period of the previous message has expired.
- Private Sub SetStatusLineText(sMessageText As String, Optional vTimePeriod As Variant, Optional vOverRide As Variant)
- Static sQueueText As String, iQueueTimePeriod As Integer, bQueueIsEmpty As Boolean
- ' if the calling procedure did not specify a display time (or set it to <.5 seconds) then default the time to 3 seconds
- Select Case True
- Case IsMissing(vTimePeriod), vTimePeriod <= 500
- vTimePeriod = 3000
- End Select
- ' if the calling procedure did not specify an vOverRide value then set vOverRide to False
- If IsMissing(vOverRide) Then vOverRide = False
- With tmrStatusLine
- ' if this procedure was called by the timer then turn the timer off and check queue. If it was not called by the timer
- ' then there is a new message to display.
- If sMessageText = "_timer_calling_" Then
- ' If there is nothing in the queue then reset the status line text to "Ready".
- ' Otherwise, display the message which is in the queue
- .Enabled = False ' turn timer off
- If bQueueIsEmpty Then
- ' reset status line text
- panStatusLine.Caption = "Ready..."
- Else
- ' display message which is in the queue
- panStatusLine.Caption = sQueueText
- ' setup timer to call this procedure when the iQueueTimePeriod has expired
- .Interval = iQueueTimePeriod
- sQueueText = "" ' clear queue text
- iQueueTimePeriod = 0 ' clear queue time period
- bQueueIsEmpty = True ' the queue is now empty so let's indicate this fact
- .Enabled = True
- End If
- Else
- ' if the timer is enabled then there is already a message being displayed so place
- ' this new message in the single item queue. But, if this is an over-ride then
- ' show the message now
- If .Enabled And Not vOverRide Then
- sQueueText = sMessageText
- iQueueTimePeriod = vTimePeriod
- bQueueIsEmpty = False
- Else
- ' over-ride the currently displayed message
- .Enabled = False
- sQueueText = "" ' clear queue text
- iQueueTimePeriod = 0 ' clear queue time period
- bQueueIsEmpty = True ' the queue is now empty so let's indicate this fact
- panStatusLine.Caption = sMessageText
- ' setup timer to call this procedure when the vTimePeriod has expired
- .Interval = vTimePeriod
- .Enabled = True
- End If
- End If
- End With ' tmrStatusLine
- End Sub
- Private Sub cmdClose_Click()
- ' unload this form
- Unload Me
- End Sub
- Private Sub cmdSlide_Click(Index As Integer)
- ' determine the button that the user pressed
- Select Case Index
- Case 0 ' Go Back
- ShowSlidePrevious
- Case 1 ' Go to Next slide
- ShowSlideNext
- End Select
- End Sub
- Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
- If KeyCode = vbKeyShift Then bShiftKeyDown = True
- End Sub
- Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
- bShiftKeyDown = False
- End Sub
- Private Sub Form_Load()
- Dim iDisplaySlideLeft As Integer, iDisplaySlideTop As Integer, iCount As Integer
- ' we use 6 slide (views) for this demo
- iNumberOfSlides = 5
- ' place all display frames in the same location as the first frame
- iDisplaySlideTop = fraSteps(0).Top
- iDisplaySlideLeft = fraSteps(0).Left
- For iCount = 0 To iNumberOfSlides - 1
- If iCount <> 0 Then
- With fraSteps(iCount)
- .Left = iDisplaySlideLeft
- .Top = iDisplaySlideTop
- End With ' fraSteps(iCount)
- End If
- Next iCount
- ' center the form to top left of screen
- Move 0, 0
- ' set default masks
- With MhMaskInputWiz
- .CMask(0) = "A"
- .CMask(1) = "9"
- End With ' MhMaskInputWiz
- ' setup first slide
- SetupFrames (1)
- iCurrentSlide = 0
- Call ShowSlideNext
- ' greet the user warmly!
- Dim sGreeting As String
- Randomize (Timer)
- Select Case Int(Rnd * 2)
- Case 0
- sGreeting = "A 'Masking' we will go..."
- Case 1
- sGreeting = "May I walk you through the mask-building process?"
- Case Else
- sGreeting = "Let's build a mask..."
- End Select
- Call SetStatusLineText(sGreeting, 4001, True)
- End Sub
- ' This procedure sets up the different views according to the SlideNumber parameter
- Private Sub SetupFrames(SlideNumber As Integer)
- On Error GoTo SetupFrames_Error
- Dim iCount As Integer
- Dim sMessageText As String
- ' enabled/disable the appropriate buttons according to our slide number
- Select Case True
- Case SlideNumber <= 1 ' we are at first slide
- ' disable the 'back' button
- cmdSlide(0).Enabled = False
- ' enable the 'next' button
- cmdSlide(1).Enabled = True
- cmdSlide(1).SetFocus
- Case SlideNumber >= iNumberOfSlides ' we are at last slide
- ' disable the 'next' button
- cmdSlide(1).Enabled = False
- cmdSlide(0).SetFocus
- Case Else ' we are in the middle so make sure that both buttons are enabled
- ' enable the 'back' button
- cmdSlide(0).Enabled = True
- ' enable the 'next' button
- cmdSlide(1).Enabled = True
- End Select
- ' make desired slide visible
- fraSteps(SlideNumber - 1).Visible = True
- ' make all frames invisible (except for the current frame)
- For iCount = 0 To iNumberOfSlides - 1
- If iCount <> SlideNumber - 1 Then fraSteps(iCount).Visible = False
- Next iCount
- Select Case SlideNumber
- Case 1
- ' tell user what this slide is about
- sMessageText = "The CMask."
- txtCMask(0).SetFocus
- Case 2
- ' if the user has not changed the mask chars then make a default one
- If Not bMaskChars1Changed Then txtCMaskCharacters(0) = "ABCabc"
- ' tell user what this slide is about
- sMessageText = "What characters should this character represent?"
- txtCMaskCharacters(0).SetFocus
- Case 3
- ' if the user has not changed the mask chars then make a default one
- If Not bMaskChars2Changed Then txtCMaskCharacters(1) = "0123"
- ' tell user what this slide is about
- sMessageText = "What characters should this character represent?"
- cmdSlide(1).Caption = "&Next >"
- txtCMaskCharacters(1).SetFocus
- Case 4
- ' if the user has not changed the mask then build a default one
- If Not bMaskChanged Then txtMask = String$(5, Asc(txtCMask(0))) & String$(5, Asc(txtCMask(1)))
- ' tell user what 2 do
- sMessageText = "What sets of characters should be allowed in what positions?"
- cmdSlide(1).Caption = "&Finish >"
- txtMask.SetFocus
- Case 5
- ' give user a tip
- sMessageText = "That was not so hard. Now, was it?"
- ' build mask which the user defined
- With MhMaskInputWiz
- .CMask(0) = txtCMask(0)
- .CMaskChars(0) = txtCMaskCharacters(0)
- .CMask(1) = txtCMask(1)
- .CMaskChars(1) = txtCMaskCharacters(1)
- .Mask = txtMask
- .TextLength = Len(txtMask)
- .Text = ""
- .SetFocus
- End With ' MhMaskInputWiz
- ' show mask definition
- txtMaskDefinition = txtMask
- End Select
- ' show user message which goes with the selected slide
- Call SetStatusLineText(sMessageText, vOverRide:=True)
- Exit Sub
- SetupFrames_Error:
- Select Case Err
- Case 5 ' setfocus while form still not loaded is ok to do
- End Select
- Resume Next
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- ' if the user held <Shift> down while closing window then close parent window too
- If bShiftKeyDown Then Unload m_oParentForm
- Set m_oParentForm = Nothing
-
- End Sub
- Private Sub tmrLight_Timer()
- Static bLightOn As Boolean
- If bLightOn Then
- Icon = imgLight(0)
- bLightOn = False
- Else
- Icon = imgLight(1)
- bLightOn = True
- End If
- End Sub
- Private Sub tmrStatusLine_Timer()
- ' tell status line that it is time to reset itself
- Call SetStatusLineText("_timer_calling_")
- End Sub
- Private Sub txtCMask_Change(Index As Integer)
- ' if the user changes the mask characters then allow a new
- ' default mask to be built
- bMaskChanged = False
- End Sub
- Private Sub txtCMask_GotFocus(Index As Integer)
- ' highlight text
- txtCMask(Index).SelStart = 0
- txtCMask(Index).SelLength = 1
- End Sub
- Private Sub txtCMask_KeyPress(Index As Integer, KeyAscii As Integer)
- Dim bBothHaveIdenticalText As Boolean
- ' this check only necessary if at least one text box already has text
- If Len(txtCMask(0)) = 0 And Len(txtCMask(1)) = 0 Then Exit Sub
- ' do not allow the user to have identical CMasks because there is simply no use!
- Select Case Index
- Case 0
- If txtCMask(1) = Chr$(KeyAscii) Then bBothHaveIdenticalText = True
- Case 1
- If txtCMask(0) = Chr$(KeyAscii) Then bBothHaveIdenticalText = True
- End Select
- If bBothHaveIdenticalText Then
- MsgBox "Defining two seperate CMasks with the same name is futile. And I just can't let you do it! :-)"
- KeyAscii = 0
- End If
- End Sub
- Private Sub txtCMask_LostFocus(Index As Integer)
- Dim sTempText As String
- ' update the corresponding read-only text boxes used in next steps
- sTempText = txtCMask(Index)
- lblCMaskName(Index) = sTempText
- lblCMaskName(Index + 2) = sTempText
- lblCMaskName(Index + 4) = sTempText
- End Sub
- Private Sub txtCMaskCharacters_Change(Index As Integer)
- ' update the corresponding read-only text boxes used in next steps
- txtCMaskCharactersName(Index) = txtCMaskCharacters(Index)
- txtCMaskCharactersName(Index + 2) = txtCMaskCharacters(Index)
- Select Case Index
- Case 0
- bMaskChars1Changed = True
- Case 1
- bMaskChars2Changed = True
- End Select
- End Sub
- Private Sub txtCMaskCharacters_GotFocus(Index As Integer)
- ' highlight text
- txtCMaskCharacters(Index).SelStart = 0
- txtCMaskCharacters(Index).SelLength = Len(txtCMaskCharacters(Index))
- End Sub
- Private Sub txtMask_Change()
- bMaskChanged = True
- End Sub
- Private Sub txtMask_GotFocus()
- ' highlight text
- txtMask.SelStart = 0
- txtMask.SelLength = Len(txtMask)
- End Sub
- Private Sub txtMask_KeyPress(KeyAscii As Integer)
- ' only allow the user to build the mask from the chars that they defined in the CMask text boxes
- Select Case Chr$(KeyAscii)
- Case Left$(txtCMask(0), 1), Left$(txtCMask(1), 1)
- ' ok
- Case Else
- ' kill key!
- KeyAscii = 0
- End Select
- End Sub
- Public Property Set ParentForm(oNewForm As Form)
- Set m_oParentForm = oNewForm
- End Property
-