home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / tool / various / ctdemo / ct_dialg.frm (.txt) < prev    next >
Encoding:
Visual Basic Form  |  1995-02-26  |  26.7 KB  |  756 lines

  1. VERSION 2.00
  2. Begin Form w_common_dialog 
  3.    BackColor       =   &H00C0C0C0&
  4.    BorderStyle     =   1  'Fixed Single
  5.    Caption         =   "Common Dialogues Demo"
  6.    ClientHeight    =   4665
  7.    ClientLeft      =   555
  8.    ClientTop       =   1590
  9.    ClientWidth     =   8130
  10.    Height          =   5190
  11.    Icon            =   CT_DIALG.FRX:0000
  12.    Left            =   495
  13.    LinkTopic       =   "Form1"
  14.    MaxButton       =   0   'False
  15.    MDIChild        =   -1  'True
  16.    ScaleHeight     =   4665
  17.    ScaleWidth      =   8130
  18.    Top             =   1125
  19.    Width           =   8250
  20.    Begin CommandButton Command1 
  21.       Caption         =   "Dialogue"
  22.       Height          =   375
  23.       Left            =   6900
  24.       TabIndex        =   4
  25.       Top             =   3420
  26.       Width           =   975
  27.    End
  28.    Begin CommandButton btn_exit 
  29.       Caption         =   "E&xit"
  30.       Height          =   375
  31.       Left            =   6900
  32.       TabIndex        =   1
  33.       Top             =   4020
  34.       Width           =   975
  35.    End
  36.    Begin ctFOLD ctFold 
  37.       Amount          =   3
  38.       BackColor       =   &H00C0C0C0&
  39.       BackSequence    =   ""
  40.       Caption         =   "Colors;Fonts;Files"
  41.       CustomColor1    =   &H00FFFFFF&
  42.       CustomColor2    =   &H00FFFFFF&
  43.       CustomColor3    =   &H00FFFFFF&
  44.       CustomColor4    =   &H00FFFFFF&
  45.       CustomColor5    =   &H00FFFFFF&
  46.       DisableColor    =   &H00808080&
  47.       DisableSequence =   ""
  48.       FixedSize       =   0   'False
  49.       FontBold        =   0   'False
  50.       FontItalic      =   0   'False
  51.       FontName        =   "MS Sans Serif"
  52.       FontSize        =   8.25
  53.       FontStrikethru  =   0   'False
  54.       FontUnderline   =   0   'False
  55.       Height          =   3855
  56.       Left            =   360
  57.       LevelOffset     =   20
  58.       Levels          =   1
  59.       PicCols         =   3
  60.       PicPosition     =   3  'Left
  61.       PicRows         =   1
  62.       PicSequence     =   "1,2,3"
  63.       Picture         =   CT_DIALG.FRX:0302
  64.       PicXOffset      =   0
  65.       PicYOffset      =   0
  66.       SelectedFontBold=   -1  'True
  67.       SelectedFontItalic=   0   'False
  68.       SelectedFontStrikeOut=   0   'False
  69.       SelectedFontUnderline=   0   'False
  70.       SelectedTab     =   1
  71.       TabBorder       =   1  'Raised
  72.       TabColor        =   &H00C0C0C0&
  73.       TabHeight       =   45
  74.       TabIndex        =   0
  75.       TabLine         =   0   'False
  76.       TabSide         =   0  'Top
  77.       TabWidth        =   30
  78.       TextColor       =   &H00000000&
  79.       TextSequence    =   ""
  80.       TextXOffset     =   0
  81.       TextYOffset     =   0
  82.       Top             =   600
  83.       UnTabColor      =   &H00C0C0C0&
  84.       UnTextColor     =   &H00000000&
  85.       Width           =   6195
  86.       Begin ctFRAME frm_dlg 
  87.          BackColor       =   &H00C0C0C0&
  88.          BorderColor     =   &H00000000&
  89.          DistanceApart   =   5
  90.          Height          =   2595
  91.          Index           =   0
  92.          InnerBorder     =   1  'None
  93.          InnerWidth      =   1
  94.          Left            =   240
  95.          OuterBorder     =   0  'Regular
  96.          OuterWidth      =   1
  97.          ShadowColor     =   &H00808080&
  98.          ShowBottom      =   -1  'True
  99.          ShowLeft        =   -1  'True
  100.          ShowRight       =   -1  'True
  101.          ShowTop         =   -1  'True
  102.          TabIndex        =   2
  103.          Top             =   1020
  104.          Width           =   5655
  105.          Begin TextBox color_yText 
  106.             Height          =   315
  107.             Left            =   1140
  108.             TabIndex        =   11
  109.             Text            =   "-1"
  110.             Top             =   2160
  111.             Width           =   555
  112.          End
  113.          Begin TextBox color_xText 
  114.             Height          =   315
  115.             Left            =   1140
  116.             TabIndex        =   10
  117.             Text            =   "-1"
  118.             Top             =   1800
  119.             Width           =   555
  120.          End
  121.          Begin ctCHECK ctColor_Help 
  122.             Alignment       =   0  'Left Justify
  123.             BackColor       =   &H00C0C0C0&
  124.             Caption         =   "Show Help"
  125.             DisableColor    =   &H00808080&
  126.             ForeColor       =   &H00000000&
  127.             Height          =   255
  128.             Left            =   240
  129.             PicStyle        =   1  'Style #1
  130.             ShowFocus       =   -1  'True
  131.             TabIndex        =   7
  132.             Top             =   1380
  133.             Value           =   0   'False
  134.             Width           =   1575
  135.          End
  136.          Begin ComboBox cmb_color 
  137.             Height          =   300
  138.             Left            =   240
  139.             Style           =   2  'Dropdown List
  140.             TabIndex        =   5
  141.             Top             =   840
  142.             Width           =   2235
  143.          End
  144.          Begin ctCOLOR ctColor1 
  145.             Action          =   0
  146.             BackColor       =   &H00FFFFFF&
  147.             Color           =   &H00FFFFFF&
  148.             CustomColor1    =   &H00FFFFFF&
  149.             CustomColor10   =   &H00FFFFFF&
  150.             CustomColor11   =   &H00FFFFFF&
  151.             CustomColor12   =   &H00FFFFFF&
  152.             CustomColor13   =   &H00FFFFFF&
  153.             CustomColor14   =   &H00FFFFFF&
  154.             CustomColor15   =   &H00FFFFFF&
  155.             CustomColor16   =   &H00FFFFFF&
  156.             CustomColor2    =   &H00FFFFFF&
  157.             CustomColor3    =   &H00FFFFFF&
  158.             CustomColor4    =   &H00FFFFFF&
  159.             CustomColor5    =   &H00FFFFFF&
  160.             CustomColor6    =   &H00FFFFFF&
  161.             CustomColor7    =   &H00FFFFFF&
  162.             CustomColor8    =   &H00FFFFFF&
  163.             CustomColor9    =   &H00FFFFFF&
  164.             DialogueLeft    =   -1
  165.             DialogueTop     =   -1
  166.             Flags           =   0  'Regular
  167.             Left            =   5040
  168.             ShowHelp        =   0   'False
  169.             Top             =   120
  170.          End
  171.          Begin Label Label3 
  172.             BackColor       =   &H00C0C0C0&
  173.             Caption         =   "Y Posn :"
  174.             Height          =   255
  175.             Left            =   240
  176.             TabIndex        =   9
  177.             Top             =   2160
  178.             Width           =   795
  179.          End
  180.          Begin Label Label2 
  181.             BackColor       =   &H00C0C0C0&
  182.             Caption         =   "X Posn :"
  183.             Height          =   255
  184.             Left            =   240
  185.             TabIndex        =   8
  186.             Top             =   1800
  187.             Width           =   795
  188.          End
  189.          Begin Label Label1 
  190.             Alignment       =   2  'Center
  191.             BackColor       =   &H00C0C0C0&
  192.             Caption         =   "Current Color"
  193.             FontBold        =   -1  'True
  194.             FontItalic      =   0   'False
  195.             FontName        =   "MS Sans Serif"
  196.             FontSize        =   9.75
  197.             FontStrikethru  =   0   'False
  198.             FontUnderline   =   0   'False
  199.             Height          =   495
  200.             Left            =   3960
  201.             TabIndex        =   6
  202.             Top             =   1920
  203.             Width           =   915
  204.          End
  205.          Begin Shape r_color 
  206.             BackColor       =   &H00800000&
  207.             BackStyle       =   1  'Opaque
  208.             Height          =   915
  209.             Left            =   3900
  210.             Top             =   900
  211.             Width           =   975
  212.          End
  213.          Begin Label ct 
  214.             BackColor       =   &H00C0C0C0&
  215.             Caption         =   "ctCOLOR Common Dialogue"
  216.             FontBold        =   -1  'True
  217.             FontItalic      =   0   'False
  218.             FontName        =   "Times New Roman"
  219.             FontSize        =   18
  220.             FontStrikethru  =   0   'False
  221.             FontUnderline   =   0   'False
  222.             ForeColor       =   &H00800000&
  223.             Height          =   435
  224.             Left            =   180
  225.             TabIndex        =   3
  226.             Top             =   180
  227.             Width           =   4635
  228.          End
  229.       End
  230.       Begin ctFRAME frm_dlg 
  231.          BackColor       =   &H00C0C0C0&
  232.          BorderColor     =   &H00000000&
  233.          DistanceApart   =   5
  234.          Height          =   2595
  235.          Index           =   2
  236.          InnerBorder     =   1  'None
  237.          InnerWidth      =   1
  238.          Left            =   240
  239.          OuterBorder     =   0  'Regular
  240.          OuterWidth      =   1
  241.          ShadowColor     =   &H00808080&
  242.          ShowBottom      =   -1  'True
  243.          ShowLeft        =   -1  'True
  244.          ShowRight       =   -1  'True
  245.          ShowTop         =   -1  'True
  246.          TabIndex        =   28
  247.          Top             =   1020
  248.          Width           =   5655
  249.          Begin TextBox sle_title 
  250.             Height          =   285
  251.             Left            =   2700
  252.             TabIndex        =   41
  253.             Top             =   900
  254.             Width           =   2595
  255.          End
  256.          Begin ctFILE ctFile 
  257.             Action          =   0
  258.             AllowMultiSelect=   0   'False
  259.             BackColor       =   &H00FFFFFF&
  260.             DialogueLeft    =   -1
  261.             DialogueTop     =   -1
  262.             Directory       =   ""
  263.             DlgTitle        =   ""
  264.             File            =   "*.*"
  265.             FileTitle       =   "*.*"
  266.             Filter          =   ""
  267.             HideReadOnly    =   0   'False
  268.             Left            =   5040
  269.             OverWritePrompt =   0   'False
  270.             ShowHelp        =   0   'False
  271.             Top             =   120
  272.          End
  273.          Begin Frame Frame1 
  274.             BackColor       =   &H00C0C0C0&
  275.             Caption         =   "Dialogue Type"
  276.             Height          =   675
  277.             Left            =   300
  278.             TabIndex        =   35
  279.             Top             =   600
  280.             Width           =   1815
  281.             Begin ctRADIO rad_save 
  282.                Alignment       =   0  'Left Justify
  283.                BackColor       =   &H00C0C0C0&
  284.                Caption         =   "Save"
  285.                DisableColor    =   &H00808080&
  286.                ForeColor       =   &H00000000&
  287.                Height          =   255
  288.                Left            =   960
  289.                PicStyle        =   2  'Style #2
  290.                ShowFocus       =   -1  'True
  291.                TabIndex        =   37
  292.                Top             =   300
  293.                Value           =   0   'False
  294.                Width           =   795
  295.             End
  296.             Begin ctRADIO rad_open 
  297.                Alignment       =   0  'Left Justify
  298.                BackColor       =   &H00C0C0C0&
  299.                Caption         =   "Open"
  300.                DisableColor    =   &H00808080&
  301.                ForeColor       =   &H00000000&
  302.                Height          =   255
  303.                Left            =   120
  304.                PicStyle        =   2  'Style #2
  305.                ShowFocus       =   -1  'True
  306.                TabIndex        =   36
  307.                Top             =   300
  308.                Value           =   -1  'True
  309.                Width           =   735
  310.             End
  311.          End
  312.          Begin TextBox file_yText 
  313.             Height          =   315
  314.             Left            =   1140
  315.             TabIndex        =   34
  316.             Text            =   "-1"
  317.             Top             =   2160
  318.             Width           =   555
  319.          End
  320.          Begin TextBox file_xText 
  321.             Height          =   315
  322.             Left            =   1140
  323.             TabIndex        =   33
  324.             Text            =   "-1"
  325.             Top             =   1800
  326.             Width           =   555
  327.          End
  328.          Begin ctCHECK ctFile_Help 
  329.             Alignment       =   0  'Left Justify
  330.             BackColor       =   &H00C0C0C0&
  331.             Caption         =   "Show Help"
  332.             DisableColor    =   &H00808080&
  333.             ForeColor       =   &H00000000&
  334.             Height          =   315
  335.             Left            =   300
  336.             PicStyle        =   1  'Style #1
  337.             ShowFocus       =   -1  'True
  338.             TabIndex        =   30
  339.             Top             =   1380
  340.             Value           =   0   'False
  341.             Width           =   1395
  342.          End
  343.          Begin Label sle_directory 
  344.             BorderStyle     =   1  'Fixed Single
  345.             Height          =   255
  346.             Left            =   2700
  347.             TabIndex        =   43
  348.             Top             =   2100
  349.             Width           =   2655
  350.          End
  351.          Begin Label sle_file 
  352.             BorderStyle     =   1  'Fixed Single
  353.             Height          =   255
  354.             Left            =   2700
  355.             TabIndex        =   42
  356.             Top             =   1500
  357.             Width           =   2595
  358.          End
  359.          Begin Label Label15 
  360.             BackColor       =   &H00C0C0C0&
  361.             Caption         =   "Directory :"
  362.             Height          =   255
  363.             Left            =   2700
  364.             TabIndex        =   40
  365.             Top             =   1860
  366.             Width           =   975
  367.          End
  368.          Begin Label Label14 
  369.             BackColor       =   &H00C0C0C0&
  370.             Caption         =   "File Title :"
  371.             Height          =   255
  372.             Left            =   2700
  373.             TabIndex        =   39
  374.             Top             =   1260
  375.             Width           =   975
  376.          End
  377.          Begin Label Label13 
  378.             BackColor       =   &H00C0C0C0&
  379.             Caption         =   "Dialogue Title :"
  380.             Height          =   255
  381.             Left            =   2700
  382.             TabIndex        =   38
  383.             Top             =   660
  384.             Width           =   1395
  385.          End
  386.          Begin Label Label12 
  387.             BackColor       =   &H00C0C0C0&
  388.             Caption         =   "Y Posn :"
  389.             Height          =   255
  390.             Left            =   300
  391.             TabIndex        =   32
  392.             Top             =   2160
  393.             Width           =   795
  394.          End
  395.          Begin Label Label11 
  396.             BackColor       =   &H00C0C0C0&
  397.             Caption         =   "X Posn :"
  398.             Height          =   255
  399.             Left            =   300
  400.             TabIndex        =   31
  401.             Top             =   1800
  402.             Width           =   795
  403.          End
  404.          Begin Label Label10 
  405.             BackColor       =   &H00C0C0C0&
  406.             Caption         =   "ctFILE Common Dialogue"
  407.             FontBold        =   -1  'True
  408.             FontItalic      =   0   'False
  409.             FontName        =   "Times New Roman"
  410.             FontSize        =   18
  411.             FontStrikethru  =   0   'False
  412.             FontUnderline   =   0   'False
  413.             ForeColor       =   &H00800000&
  414.             Height          =   435
  415.             Left            =   240
  416.             TabIndex        =   29
  417.             Top             =   180
  418.             Width           =   4215
  419.          End
  420.       End
  421.       Begin ctFRAME frm_dlg 
  422.          BackColor       =   &H00C0C0C0&
  423.          BorderColor     =   &H00000000&
  424.          DistanceApart   =   5
  425.          Height          =   2595
  426.          Index           =   1
  427.          InnerBorder     =   1  'None
  428.          InnerWidth      =   1
  429.          Left            =   240
  430.          OuterBorder     =   0  'Regular
  431.          OuterWidth      =   1
  432.          ShadowColor     =   &H00808080&
  433.          ShowBottom      =   -1  'True
  434.          ShowLeft        =   -1  'True
  435.          ShowRight       =   -1  'True
  436.          ShowTop         =   -1  'True
  437.          TabIndex        =   12
  438.          Top             =   1020
  439.          Width           =   5655
  440.          Begin TextBox lbl_fontsize 
  441.             FontBold        =   0   'False
  442.             FontItalic      =   0   'False
  443.             FontName        =   "MS Sans Serif"
  444.             FontSize        =   8.25
  445.             FontStrikethru  =   0   'False
  446.             FontUnderline   =   0   'False
  447.             Height          =   285
  448.             Left            =   1440
  449.             TabIndex        =   22
  450.             Text            =   "10"
  451.             Top             =   1020
  452.             Width           =   555
  453.          End
  454.          Begin TextBox lbl_fontname 
  455.             FontBold        =   0   'False
  456.             FontItalic      =   0   'False
  457.             FontName        =   "MS Sans Serif"
  458.             FontSize        =   8.25
  459.             FontStrikethru  =   0   'False
  460.             FontUnderline   =   0   'False
  461.             Height          =   285
  462.             Left            =   1440
  463.             TabIndex        =   23
  464.             Text            =   "System"
  465.             Top             =   660
  466.             Width           =   3075
  467.          End
  468.          Begin ctCHECK chk_underline 
  469.             Alignment       =   0  'Left Justify
  470.             BackColor       =   &H00C0C0C0&
  471.             Caption         =   "Font Underline"
  472.             DisableColor    =   &H00808080&
  473.             ForeColor       =   &H00000000&
  474.             Height          =   255
  475.             Left            =   3120
  476.             PicStyle        =   1  'Style #1
  477.             ShowFocus       =   -1  'True
  478.             TabIndex        =   27
  479.             Top             =   2160
  480.             Value           =   0   'False
  481.             Width           =   1695
  482.          End
  483.          Begin ctCHECK chk_strike 
  484.             Alignment       =   0  'Left Justify
  485.             BackColor       =   &H00C0C0C0&
  486.             Caption         =   "Font StrikeOut"
  487.             DisableColor    =   &H00808080&
  488.             ForeColor       =   &H00000000&
  489.             Height          =   255
  490.             Left            =   3120
  491.             PicStyle        =   1  'Style #1
  492.             ShowFocus       =   -1  'True
  493.             TabIndex        =   26
  494.             Top             =   1860
  495.             Value           =   0   'False
  496.             Width           =   1815
  497.          End
  498.          Begin ctCHECK chk_italic 
  499.             Alignment       =   0  'Left Justify
  500.             BackColor       =   &H00C0C0C0&
  501.             Caption         =   "Font Italic"
  502.             DisableColor    =   &H00808080&
  503.             ForeColor       =   &H00000000&
  504.             Height          =   255
  505.             Left            =   3120
  506.             PicStyle        =   1  'Style #1
  507.             ShowFocus       =   -1  'True
  508.             TabIndex        =   25
  509.             Top             =   1560
  510.             Value           =   0   'False
  511.             Width           =   1875
  512.          End
  513.          Begin ctCHECK chk_bold 
  514.             Alignment       =   0  'Left Justify
  515.             BackColor       =   &H00C0C0C0&
  516.             Caption         =   "Font Bold"
  517.             DisableColor    =   &H00808080&
  518.             ForeColor       =   &H00000000&
  519.             Height          =   255
  520.             Left            =   3120
  521.             PicStyle        =   1  'Style #1
  522.             ShowFocus       =   -1  'True
  523.             TabIndex        =   24
  524.             Top             =   1260
  525.             Value           =   -1  'True
  526.             Width           =   1755
  527.          End
  528.          Begin ctFONT ctFont 
  529.             Action          =   0
  530.             BackColor       =   &H00FFFFFF&
  531.             DialogueLeft    =   -1
  532.             DialogueTop     =   -1
  533.             FontBold        =   -1  'True
  534.             FontItalic      =   0   'False
  535.             FontName        =   "System"
  536.             FontSize        =   10
  537.             FontStrikeOut   =   0   'False
  538.             FontUnderline   =   0   'False
  539.             Left            =   5100
  540.             ShowHelp        =   0   'False
  541.             TextColor       =   &H00000000&
  542.             Top             =   120
  543.          End
  544.          Begin TextBox font_yText 
  545.             Height          =   315
  546.             Left            =   1140
  547.             TabIndex        =   19
  548.             Text            =   "-1"
  549.             Top             =   2160
  550.             Width           =   555
  551.          End
  552.          Begin TextBox font_xText 
  553.             Height          =   315
  554.             Left            =   1140
  555.             TabIndex        =   18
  556.             Text            =   "-1"
  557.             Top             =   1800
  558.             Width           =   555
  559.          End
  560.          Begin ctCHECK ctFont_Help 
  561.             Alignment       =   0  'Left Justify
  562.             BackColor       =   &H00C0C0C0&
  563.             Caption         =   "Show Help"
  564.             DisableColor    =   &H00808080&
  565.             ForeColor       =   &H00000000&
  566.             Height          =   315
  567.             Left            =   300
  568.             PicStyle        =   1  'Style #1
  569.             ShowFocus       =   -1  'True
  570.             TabIndex        =   15
  571.             Top             =   1380
  572.             Value           =   0   'False
  573.             Width           =   1335
  574.          End
  575.          Begin Label Label9 
  576.             BackColor       =   &H00C0C0C0&
  577.             Caption         =   "Font Size :"
  578.             Height          =   255
  579.             Left            =   300
  580.             TabIndex        =   21
  581.             Top             =   1020
  582.             Width           =   1035
  583.          End
  584.          Begin Label Label8 
  585.             BackColor       =   &H00C0C0C0&
  586.             Caption         =   "Font Name :"
  587.             Height          =   255
  588.             Left            =   300
  589.             TabIndex        =   20
  590.             Top             =   660
  591.             Width           =   1155
  592.          End
  593.          Begin Label Label7 
  594.             BackColor       =   &H00C0C0C0&
  595.             Caption         =   "Y Posn :"
  596.             Height          =   255
  597.             Left            =   300
  598.             TabIndex        =   17
  599.             Top             =   2160
  600.             Width           =   735
  601.          End
  602.          Begin Label Label6 
  603.             BackColor       =   &H00C0C0C0&
  604.             Caption         =   "X Posn :"
  605.             Height          =   255
  606.             Left            =   300
  607.             TabIndex        =   16
  608.             Top             =   1800
  609.             Width           =   735
  610.          End
  611.          Begin Label Label4 
  612.             BackColor       =   &H00C0C0C0&
  613.             Caption         =   "ctFONT Common Dialogue"
  614.             FontBold        =   -1  'True
  615.             FontItalic      =   0   'False
  616.             FontName        =   "Times New Roman"
  617.             FontSize        =   18
  618.             FontStrikethru  =   0   'False
  619.             FontUnderline   =   0   'False
  620.             ForeColor       =   &H00800000&
  621.             Height          =   435
  622.             Left            =   180
  623.             TabIndex        =   13
  624.             Top             =   180
  625.             Width           =   4335
  626.          End
  627.       End
  628.    End
  629.    Begin Label Label5 
  630.       Alignment       =   2  'Center
  631.       BackColor       =   &H00C0C0C0&
  632.       Caption         =   "The following demo displays some of the comon dialogue VBX controls"
  633.       FontBold        =   -1  'True
  634.       FontItalic      =   0   'False
  635.       FontName        =   "MS Sans Serif"
  636.       FontSize        =   9.75
  637.       FontStrikethru  =   0   'False
  638.       FontUnderline   =   0   'False
  639.       ForeColor       =   &H00800000&
  640.       Height          =   375
  641.       Left            =   420
  642.       TabIndex        =   14
  643.       Top             =   120
  644.       Width           =   7395
  645.    End
  646. Sub btn_exit_Click ()
  647.    Unload w_common_dialog
  648. End Sub
  649. Sub Command1_Click ()
  650.    Dim nTemp As Integer
  651.    If ctFold.SelectedTab = 1 Then
  652.       ctColor1.Color = r_color.BackColor
  653.       ctColor1.ShowHelp = ctColor_Help.Value
  654.       ctColor1.Flags = cmb_color.ListIndex
  655.       If color_xText = "-1" Then
  656.          ctColor1.DialogueLeft = -1
  657.       Else
  658.          ctColor1.DialogueLeft = Int(color_xText)
  659.       End If
  660.       If color_yText = "-1" Then
  661.          ctColor1.DialogueTop = -1
  662.       Else
  663.          ctColor1.DialogueTop = Int(color_yText)
  664.       End If
  665.       ctColor1.Action = 1
  666.    ElseIf ctFold.SelectedTab = 2 Then
  667.       ctFont.TextColor = r_color.BackColor
  668.       ctFont.ShowHelp = ctFont_Help.Value
  669.       ctFont.FontBold = chk_bold.Value
  670.       ctFont.FontItalic = chk_italic.Value
  671.       ctFont.FontStrikeOut = chk_strike.Value
  672.       ctFont.FontUnderline = chk_underline.Value
  673.       ctFont.FontName = lbl_FontName.Text
  674.       nTemp = Int(lbl_FontSize.Text)
  675.       If nTemp < 6 Then
  676.          ctFont.FontSize = 10
  677.       Else
  678.          ctFont.FontSize = nTemp
  679.       End If
  680.       If font_xText = "-1" Then
  681.          ctFont.DialogueLeft = -1
  682.       Else
  683.          ctFont.DialogueLeft = Int(font_xText)
  684.       End If
  685.       If font_yText = "-1" Then
  686.          ctFont.DialogueTop = -1
  687.       Else
  688.          ctFont.DialogueTop = Int(font_yText)
  689.       End If
  690.       ctFont.Action = 1
  691.    ElseIf ctFold.SelectedTab = 3 Then
  692.       ctFile.ShowHelp = ctFile_Help.Value
  693.       ctFile.DlgTitle = sle_title.Text
  694.       If file_xText = "-1" Then
  695.          ctFile.DialogueLeft = -1
  696.       Else
  697.          ctFile.DialogueLeft = Int(file_xText)
  698.       End If
  699.       If file_yText = "-1" Then
  700.          ctFile.DialogueTop = -1
  701.       Else
  702.          ctFile.DialogueTop = Int(file_yText)
  703.       End If
  704.       If rad_open.Value = True Then
  705.          ctFile.Action = 1
  706.       Else
  707.          ctFile.Action = 2
  708.       End If
  709.    End If
  710. End Sub
  711. Sub ctColor1_OK ()
  712.    r_color.BackColor = ctColor1.Color
  713. End Sub
  714. Sub ctFile_OK ()
  715.    sle_directory.Caption = ctFile.Directory
  716.    sle_file.Caption = ctFile.FileTitle
  717. End Sub
  718. Sub ctFold_TabChange (nNewTab As Integer, nOldTab As Integer)
  719.    If ctFold.SelectedTab = 1 Then
  720.       frm_dlg(0).Visible = True
  721.       frm_dlg(1).Visible = False
  722.       frm_dlg(2).Visible = False
  723.    ElseIf ctFold.SelectedTab = 2 Then
  724.       frm_dlg(1).Visible = True
  725.       frm_dlg(0).Visible = False
  726.       frm_dlg(2).Visible = False
  727.    ElseIf ctFold.SelectedTab = 3 Then
  728.       frm_dlg(2).Visible = True
  729.       frm_dlg(0).Visible = False
  730.       frm_dlg(1).Visible = False
  731.    End If
  732. End Sub
  733. Sub ctFold1_TabChange ()
  734. End Sub
  735. Sub ctFont_OK ()
  736.    r_color.BackColor = ctFont.TextColor
  737.    chk_bold.Value = ctFont.FontBold
  738.    chk_italic.Value = ctFont.FontItalic
  739.    chk_strike.Value = ctFont.FontStrikeOut
  740.    chk_underline.Value = ctFont.FontUnderline
  741.    lbl_FontName.Text = ctFont.FontName
  742.    lbl_FontSize.Text = Str$(ctFont.FontSize)
  743. End Sub
  744. Sub Form_Load ()
  745.    ' Center the window on the screen
  746.    Move (Screen.Width - Width) / 2, (Screen.Height - Height) * .25
  747.    w_mdi_main.bt_color = BUTTON_DISABLE
  748.    cmb_color.AddItem "0 Regular"
  749.    cmb_color.AddItem "1 Prevent Full Open"
  750.    cmb_color.AddItem "2 Full Open"
  751.    cmb_color.ListIndex = 0
  752. End Sub
  753. Sub Form_Unload (Cancel As Integer)
  754.    w_mdi_main.bt_color = BUTTON_UP
  755. End Sub
  756.