home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic 4 Unleashed / Visual_Basic_4_Unleashed_SAMS_Publishing_1995.iso / truegrid / disk1 / vsdemo / vsdemo.$ / FWIZ.FRM (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-02-15  |  20.6 KB  |  540 lines

  1. VERSION 2.00
  2. Begin Form fwiz 
  3.    BorderStyle     =   3  'Fixed Double
  4.    Caption         =   "Create Wizards with the IndexTab"
  5.    ClientHeight    =   3960
  6.    ClientLeft      =   1095
  7.    ClientTop       =   1545
  8.    ClientWidth     =   7170
  9.    Height          =   4425
  10.    Left            =   1005
  11.    LinkTopic       =   "Form1"
  12.    ScaleHeight     =   3960
  13.    ScaleWidth      =   7170
  14.    Top             =   1170
  15.    Width           =   7350
  16.    Begin VideoSoftElastic VSElastic1 
  17.       Align           =   5  'Fill Container
  18.       AutoSizeChildren=   1  'Even Horizontal
  19.       BevelInner      =   0  'None
  20.       BevelOuter      =   1  'Raised
  21.       BevelOuterWidth =   1
  22.       BorderWidth     =   12
  23.       ConvInfo        =   FWIZ.FRX:0000
  24.       Height          =   3390
  25.       IntBkg          =   &H00C0C0C0&
  26.       Left            =   0
  27.       TabIndex        =   0
  28.       Top             =   0
  29.       Width           =   7170
  30.       Begin VideoSoftIndexTab VSIndexTab1 
  31.          BackSheets      =   0  'None
  32.          Caption         =   "1|2|3|4"
  33.          ConvInfo        =   FWIZ.FRX:000B
  34.          Height          =   3030
  35.          Left            =   180
  36.          New3D           =   -1  'True
  37.          Position        =   0  'Top
  38.          Style           =   7  'Straight 3D
  39.          TabIndex        =   2
  40.          Top             =   180
  41.          Width           =   6810
  42.          Begin VideoSoftElastic elaPage 
  43.             AccessKey       =   -1  'True
  44.             BevelChildren   =   2  'No Elastics
  45.             BevelInner      =   0  'None
  46.             BevelOuter      =   0  'None
  47.             ConvInfo        =   FWIZ.FRX:0016
  48.             FontBold        =   0   'False
  49.             FontItalic      =   0   'False
  50.             FontName        =   "MS Sans Serif"
  51.             FontSize        =   8.25
  52.             FontStrikethru  =   0   'False
  53.             FontUnderline   =   0   'False
  54.             Height          =   2685
  55.             Index           =   3
  56.             IntBkg          =   &H00C0C0C0&
  57.             Left            =   10080
  58.             TabIndex        =   26
  59.             TagPosition     =   1  'Above
  60.             TagWidth        =   278
  61.             Top             =   315
  62.             Width           =   6750
  63.             Begin CommandButton cmdButton 
  64.                Caption         =   "&Preview"
  65.                FontBold        =   0   'False
  66.                FontItalic      =   0   'False
  67.                FontName        =   "MS Sans Serif"
  68.                FontSize        =   8.25
  69.                FontStrikethru  =   0   'False
  70.                FontUnderline   =   0   'False
  71.                Height          =   390
  72.                Index           =   4
  73.                Left            =   4110
  74.                TabIndex        =   28
  75.                Top             =   1020
  76.                Width           =   1320
  77.             End
  78.             Begin VideoSoftElastic VSElastic4 
  79.                BevelInner      =   0  'None
  80.                BevelOuter      =   0  'None
  81.                Caption         =   "DONE!  Now you can preview the MessageBox"
  82.                CaptionPos      =   4  'Center Center
  83.                CaptionStyle    =   1  'Raised
  84.                ConvInfo        =   FWIZ.FRX:0021
  85.                FontBold        =   -1  'True
  86.                FontItalic      =   -1  'True
  87.                FontName        =   "Arial"
  88.                FontSize        =   18
  89.                FontStrikethru  =   0   'False
  90.                FontUnderline   =   0   'False
  91.                ForeColor       =   &H00FF0000&
  92.                Height          =   1455
  93.                Index           =   3
  94.                IntBkg          =   &H00C0C0C0&
  95.                Left            =   510
  96.                TabIndex        =   27
  97.                Top             =   465
  98.                Width           =   3195
  99.             End
  100.          End
  101.          Begin VideoSoftElastic elaPage 
  102.             BevelInner      =   0  'None
  103.             BevelOuter      =   0  'None
  104.             ConvInfo        =   FWIZ.FRX:002C
  105.             Height          =   2685
  106.             Index           =   2
  107.             IntBkg          =   &H00C0C0C0&
  108.             Left            =   10005
  109.             TabIndex        =   6
  110.             Top             =   315
  111.             Width           =   6750
  112.             Begin VideoSoftElastic VSElastic8 
  113.                AutoSizeChildren=   4  'Uneven Vertical
  114.                BevelOuter      =   1  'Raised
  115.                BevelOuterWidth =   1
  116.                Caption         =   "Buttons"
  117.                ConvInfo        =   FWIZ.FRX:0037
  118.                Height          =   1905
  119.                IntBkg          =   &H00C0C0C0&
  120.                Left            =   3720
  121.                Style           =   1  'Frame Top
  122.                TabIndex        =   23
  123.                Top             =   45
  124.                Width           =   2880
  125.                Begin ListBox List1 
  126.                   FontBold        =   0   'False
  127.                   FontItalic      =   0   'False
  128.                   FontName        =   "MS Sans Serif"
  129.                   FontSize        =   8.25
  130.                   FontStrikethru  =   0   'False
  131.                   FontUnderline   =   0   'False
  132.                   Height          =   1005
  133.                   Left            =   90
  134.                   TabIndex        =   24
  135.                   Top             =   720
  136.                   Width           =   2700
  137.                End
  138.                Begin ComboBox Combo1 
  139.                   FontBold        =   0   'False
  140.                   FontItalic      =   0   'False
  141.                   FontName        =   "MS Sans Serif"
  142.                   FontSize        =   8.25
  143.                   FontStrikethru  =   0   'False
  144.                   FontUnderline   =   0   'False
  145.                   Height          =   315
  146.                   Left            =   90
  147.                   TabIndex        =   25
  148.                   Text            =   "Combo1"
  149.                   Top             =   330
  150.                   Width           =   2700
  151.                End
  152.             End
  153.             Begin VideoSoftElastic VSElastic6 
  154.                AutoSizeChildren=   3  'Even Vertical
  155.                BevelInner      =   0  'None
  156.                BevelOuter      =   1  'Raised
  157.                BevelOuterWidth =   1
  158.                Caption         =   " Icon "
  159.                ConvInfo        =   FWIZ.FRX:0042
  160.                Height          =   1905
  161.                IntBkg          =   &H00C0C0C0&
  162.                Left            =   1905
  163.                Style           =   1  'Frame Top
  164.                TabIndex        =   17
  165.                TagWidth        =   400
  166.                Top             =   60
  167.                Width           =   1740
  168.                Begin OptionButton Option1 
  169.                   BackColor       =   &H00C0C0C0&
  170.                   Caption         =   "None"
  171.                   FontBold        =   0   'False
  172.                   FontItalic      =   0   'False
  173.                   FontName        =   "MS Sans Serif"
  174.                   FontSize        =   8.25
  175.                   FontStrikethru  =   0   'False
  176.                   FontUnderline   =   0   'False
  177.                   Height          =   225
  178.                   Index           =   4
  179.                   Left            =   495
  180.                   TabIndex        =   22
  181.                   Top             =   330
  182.                   Value           =   -1  'True
  183.                   Width           =   1155
  184.                End
  185.                Begin OptionButton Option1 
  186.                   BackColor       =   &H00C0C0C0&
  187.                   Caption         =   "Information"
  188.                   FontBold        =   0   'False
  189.                   FontItalic      =   0   'False
  190.                   FontName        =   "MS Sans Serif"
  191.                   FontSize        =   8.25
  192.                   FontStrikethru  =   0   'False
  193.                   FontUnderline   =   0   'False
  194.                   Height          =   225
  195.                   Index           =   3
  196.                   Left            =   495
  197.                   TabIndex        =   21
  198.                   Top             =   1590
  199.                   Width           =   1155
  200.                End
  201.                Begin OptionButton Option1 
  202.                   BackColor       =   &H00C0C0C0&
  203.                   Caption         =   "Exclamation"
  204.                   FontBold        =   0   'False
  205.                   FontItalic      =   0   'False
  206.                   FontName        =   "MS Sans Serif"
  207.                   FontSize        =   8.25
  208.                   FontStrikethru  =   0   'False
  209.                   FontUnderline   =   0   'False
  210.                   Height          =   225
  211.                   Index           =   2
  212.                   Left            =   495
  213.                   TabIndex        =   20
  214.                   Top             =   1275
  215.                   Width           =   1155
  216.                End
  217.                Begin OptionButton Option1 
  218.                   BackColor       =   &H00C0C0C0&
  219.                   Caption         =   "Question"
  220.                   FontBold        =   0   'False
  221.                   FontItalic      =   0   'False
  222.                   FontName        =   "MS Sans Serif"
  223.                   FontSize        =   8.25
  224.                   FontStrikethru  =   0   'False
  225.                   FontUnderline   =   0   'False
  226.                   Height          =   225
  227.                   Index           =   1
  228.                   Left            =   495
  229.                   TabIndex        =   19
  230.                   Top             =   960
  231.                   Width           =   1155
  232.                End
  233.                Begin OptionButton Option1 
  234.                   BackColor       =   &H00C0C0C0&
  235.                   Caption         =   "Critical"
  236.                   FontBold        =   0   'False
  237.                   FontItalic      =   0   'False
  238.                   FontName        =   "MS Sans Serif"
  239.                   FontSize        =   8.25
  240.                   FontStrikethru  =   0   'False
  241.                   FontUnderline   =   0   'False
  242.                   Height          =   225
  243.                   Index           =   0
  244.                   Left            =   495
  245.                   TabIndex        =   18
  246.                   Top             =   645
  247.                   Width           =   1155
  248.                End
  249.             End
  250.             Begin VideoSoftElastic VSElastic4 
  251.                BevelInner      =   0  'None
  252.                BevelOuter      =   0  'None
  253.                Caption         =   "Set Options"
  254.                CaptionPos      =   4  'Center Center
  255.                CaptionStyle    =   1  'Raised
  256.                ConvInfo        =   FWIZ.FRX:004D
  257.                FontBold        =   -1  'True
  258.                FontItalic      =   -1  'True
  259.                FontName        =   "Arial"
  260.                FontSize        =   18
  261.                FontStrikethru  =   0   'False
  262.                FontUnderline   =   0   'False
  263.                ForeColor       =   &H00FF0000&
  264.                Height          =   1245
  265.                Index           =   2
  266.                IntBkg          =   &H00C0C0C0&
  267.                Left            =   135
  268.                TabIndex        =   15
  269.                Top             =   135
  270.                Width           =   1665
  271.             End
  272.          End
  273.          Begin VideoSoftElastic elaPage 
  274.             AccessKey       =   -1  'True
  275.             BevelChildren   =   2  'No Elastics
  276.             BevelOuter      =   0  'None
  277.             ConvInfo        =   FWIZ.FRX:0058
  278.             FontBold        =   0   'False
  279.             FontItalic      =   0   'False
  280.             FontName        =   "MS Sans Serif"
  281.             FontSize        =   8.25
  282.             FontStrikethru  =   0   'False
  283.             FontUnderline   =   0   'False
  284.             Height          =   2685
  285.             Index           =   1
  286.             IntBkg          =   &H00C0C0C0&
  287.             Left            =   9930
  288.             TabIndex        =   5
  289.             TagPosition     =   1  'Above
  290.             TagWidth        =   278
  291.             Top             =   315
  292.             Width           =   6750
  293.             Begin TextBox txtTitle 
  294.                FontBold        =   0   'False
  295.                FontItalic      =   0   'False
  296.                FontName        =   "MS Sans Serif"
  297.                FontSize        =   8.25
  298.                FontStrikethru  =   0   'False
  299.                FontUnderline   =   0   'False
  300.                Height          =   300
  301.                Left            =   2985
  302.                TabIndex        =   14
  303.                Tag             =   "&Title"
  304.                Text            =   "This is my title"
  305.                Top             =   1095
  306.                Width           =   3300
  307.             End
  308.             Begin TextBox txtMsg 
  309.                FontBold        =   0   'False
  310.                FontItalic      =   0   'False
  311.                FontName        =   "MS Sans Serif"
  312.                FontSize        =   8.25
  313.                FontStrikethru  =   0   'False
  314.                FontUnderline   =   0   'False
  315.                Height          =   285
  316.                Left            =   3000
  317.                TabIndex        =   13
  318.                Tag             =   "Message"
  319.                Text            =   "This is my message"
  320.                Top             =   495
  321.                Width           =   3330
  322.             End
  323.             Begin VideoSoftElastic VSElastic4 
  324.                BevelInner      =   0  'None
  325.                BevelOuter      =   0  'None
  326.                Caption         =   "Enter Values"
  327.                CaptionPos      =   4  'Center Center
  328.                CaptionStyle    =   1  'Raised
  329.                ConvInfo        =   FWIZ.FRX:0063
  330.                FontBold        =   -1  'True
  331.                FontItalic      =   -1  'True
  332.                FontName        =   "Arial"
  333.                FontSize        =   18
  334.                FontStrikethru  =   0   'False
  335.                FontUnderline   =   0   'False
  336.                ForeColor       =   &H00FF0000&
  337.                Height          =   1230
  338.                Index           =   1
  339.                IntBkg          =   &H00C0C0C0&
  340.                Left            =   75
  341.                TabIndex        =   12
  342.                Top             =   105
  343.                Width           =   1920
  344.             End
  345.          End
  346.          Begin VideoSoftElastic elaPage 
  347.             BevelChildren   =   2  'No Elastics
  348.             BevelOuter      =   0  'None
  349.             ConvInfo        =   FWIZ.FRX:006E
  350.             Height          =   2685
  351.             Index           =   0
  352.             IntBkg          =   &H00C0C0C0&
  353.             Left            =   30
  354.             PicturePos      =   10  'Tile
  355.             TabIndex        =   4
  356.             Top             =   315
  357.             Width           =   6750
  358.             Begin VideoSoftElastic VSElastic5 
  359.                BevelInnerWidth =   0
  360.                BevelOuter      =   0  'None
  361.                BevelOuterWidth =   1
  362.                CaptionPos      =   4  'Center Center
  363.                ConvInfo        =   FWIZ.FRX:0079
  364.                Height          =   2055
  365.                IntBkg          =   &H00C0C0C0&
  366.                Left            =   2370
  367.                Picture         =   FWIZ.FRX:0084
  368.                TabIndex        =   11
  369.                Top             =   210
  370.                Width           =   4080
  371.             End
  372.             Begin VideoSoftElastic VSElastic4 
  373.                BevelInner      =   0  'None
  374.                BevelOuter      =   0  'None
  375.                Caption         =   "MsgBox Wizard"
  376.                CaptionPos      =   4  'Center Center
  377.                CaptionStyle    =   1  'Raised
  378.                ConvInfo        =   FWIZ.FRX:4BEA
  379.                FontBold        =   -1  'True
  380.                FontItalic      =   -1  'True
  381.                FontName        =   "Arial"
  382.                FontSize        =   18
  383.                FontStrikethru  =   0   'False
  384.                FontUnderline   =   0   'False
  385.                ForeColor       =   &H00FF0000&
  386.                Height          =   1035
  387.                Index           =   0
  388.                IntBkg          =   &H00C0C0C0&
  389.                Left            =   135
  390.                TabIndex        =   7
  391.                Top             =   210
  392.                Width           =   1995
  393.             End
  394.          End
  395.       End
  396.    End
  397.    Begin VideoSoftElastic VSElastic2 
  398.       Align           =   2  'Bottom
  399.       AutoSizeChildren=   1  'Even Horizontal
  400.       BevelInner      =   0  'None
  401.       BevelOuter      =   1  'Raised
  402.       BevelOuterWidth =   1
  403.       ConvInfo        =   FWIZ.FRX:4BF5
  404.       Height          =   570
  405.       IntBkg          =   &H00C0C0C0&
  406.       Left            =   0
  407.       TabIndex        =   1
  408.       Top             =   3390
  409.       Width           =   7170
  410.       Begin CommandButton cmdButton 
  411.          Caption         =   "Apply"
  412.          FontBold        =   0   'False
  413.          FontItalic      =   0   'False
  414.          FontName        =   "MS Sans Serif"
  415.          FontSize        =   8.25
  416.          FontStrikethru  =   0   'False
  417.          FontUnderline   =   0   'False
  418.          Height          =   390
  419.          Index           =   3
  420.          Left            =   5760
  421.          TabIndex        =   16
  422.          Top             =   90
  423.          Width           =   1320
  424.       End
  425.       Begin VideoSoftElastic VSElastic3 
  426.          BevelOuter      =   0  'None
  427.          ConvInfo        =   FWIZ.FRX:4C00
  428.          Height          =   390
  429.          IntBkg          =   &H00C0C0C0&
  430.          Left            =   90
  431.          TabIndex        =   3
  432.          Top             =   90
  433.          Width           =   1335
  434.       End
  435.       Begin CommandButton cmdButton 
  436.          Caption         =   "Cancel"
  437.          FontBold        =   0   'False
  438.          FontItalic      =   0   'False
  439.          FontName        =   "MS Sans Serif"
  440.          FontSize        =   8.25
  441.          FontStrikethru  =   0   'False
  442.          FontUnderline   =   0   'False
  443.          Height          =   390
  444.          Index           =   2
  445.          Left            =   4350
  446.          TabIndex        =   10
  447.          Top             =   90
  448.          Width           =   1320
  449.       End
  450.       Begin CommandButton cmdButton 
  451.          Caption         =   "Next  >>"
  452.          FontBold        =   0   'False
  453.          FontItalic      =   0   'False
  454.          FontName        =   "MS Sans Serif"
  455.          FontSize        =   8.25
  456.          FontStrikethru  =   0   'False
  457.          FontUnderline   =   0   'False
  458.          Height          =   390
  459.          Index           =   1
  460.          Left            =   2940
  461.          TabIndex        =   9
  462.          Top             =   90
  463.          Width           =   1320
  464.       End
  465.       Begin CommandButton cmdButton 
  466.          Caption         =   "<<  &Back"
  467.          Enabled         =   0   'False
  468.          FontBold        =   0   'False
  469.          FontItalic      =   0   'False
  470.          FontName        =   "MS Sans Serif"
  471.          FontSize        =   8.25
  472.          FontStrikethru  =   0   'False
  473.          FontUnderline   =   0   'False
  474.          Height          =   390
  475.          Index           =   0
  476.          Left            =   1515
  477.          TabIndex        =   8
  478.          Top             =   90
  479.          Width           =   1335
  480.       End
  481.    End
  482. Option Explicit
  483. Dim MyIcon As Integer
  484. Dim MyButton As Integer
  485. Sub cmdButton_Click (Index As Integer)
  486.     Select Case Index
  487.     Case 0  'Previous
  488.         If vsIndexTab1.CurrTab > 0 Then vsIndexTab1.CurrTab = vsIndexTab1.CurrTab - 1
  489.     Case 1  'Next
  490.         vsIndexTab1.CurrTab = vsIndexTab1.CurrTab + 1
  491.     Case 2  'Cancel
  492.         Unload Me
  493.     Case 3  ' Apply settings
  494.     Case 4
  495.         MsgBox txtMsg, MyIcon + MyButton + combo1.ListIndex * 256, txtTitle
  496.     End Select
  497.     If vsIndexTab1.CurrTab = 0 Then
  498.     cmdButton(0).Enabled = False
  499.     Else
  500.     cmdButton(0).Enabled = True
  501.     End If
  502. End Sub
  503. Sub elaButton_Click (Index As Integer)
  504. End Sub
  505. Sub Form_Load ()
  506.     'Set the Dynamic Dialog
  507.     vsIndexTab1.TabHeight = 1
  508.     vsIndexTab1.CurrTab = 0
  509.     MyIcon = 0
  510.     MyButton = 0
  511.     List1.AddItem "OK Only"
  512.     List1.AddItem "OK Cancel"
  513.     List1.AddItem "Abort Retry Ignore"
  514.     List1.AddItem "Yes No Cancel"
  515.     List1.AddItem "Yes No"
  516.     List1.AddItem "Retry Cancel"
  517.     List1.ListIndex = 0
  518.     combo1.AddItem "Default Button 1"
  519.     combo1.AddItem "Default Button 2"
  520.     combo1.AddItem "Default Button 3"
  521.     combo1.ListIndex = 0
  522. End Sub
  523. Sub List1_Click ()
  524.   MyButton = List1.ListIndex
  525. End Sub
  526. Sub Option1_Click (Index As Integer)
  527.     Select Case Index
  528.     Case 0
  529.         MyIcon = 16
  530.     Case 1
  531.         MyIcon = 32
  532.     Case 2
  533.         MyIcon = 48
  534.     Case 3
  535.         MyIcon = 64
  536.     Case 4
  537.         MyIcon = 0
  538.     End Select
  539. End Sub
  540.