home *** CD-ROM | disk | FTP | other *** search
/ Planet Source Code Jumbo …e CD Visual Basic 1 to 7 / 5_2007-2008.ISO / data / Zips / Nice_Label2089891172007.psc / Form1.frm < prev    next >
Text File  |  2007-11-06  |  26KB  |  772 lines

  1. VERSION 5.00
  2. Object = "*\AProject1.vbp"
  3. Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "ComDlg32.OCX"
  4. Begin VB.Form Form1 
  5.    BorderStyle     =   1  'Fixed Single
  6.    Caption         =   "Demo"
  7.    ClientHeight    =   5220
  8.    ClientLeft      =   45
  9.    ClientTop       =   330
  10.    ClientWidth     =   6210
  11.    Icon            =   "Form1.frx":0000
  12.    LinkTopic       =   "Form1"
  13.    MaxButton       =   0   'False
  14.    MinButton       =   0   'False
  15.    ScaleHeight     =   5220
  16.    ScaleWidth      =   6210
  17.    StartUpPosition =   3  'Windows Default
  18.    Begin MSComDlg.CommonDialog Dia 
  19.       Left            =   0
  20.       Top             =   0
  21.       _ExtentX        =   847
  22.       _ExtentY        =   847
  23.       _Version        =   393216
  24.       CancelError     =   -1  'True
  25.       Flags           =   69891
  26.    End
  27.    Begin Project1.Label TEST 
  28.       Height          =   1005
  29.       Index           =   0
  30.       Left            =   1155
  31.       Top             =   60
  32.       Width           =   4995
  33.       _ExtentX        =   8811
  34.       _ExtentY        =   1773
  35.       Alignment       =   1
  36.       BackStyle       =   9
  37.       BorderColor1    =   -2147483647
  38.       BorderColor2    =   -2147483643
  39.       BroderStyle     =   4
  40.       Caption         =   "TEST"
  41.       Effects         =   4
  42.       FillStyle       =   3
  43.       EffectColor     =   -2147483627
  44.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  45.          Name            =   "Times New Roman"
  46.          Size            =   48
  47.          Charset         =   178
  48.          Weight          =   700
  49.          Underline       =   0   'False
  50.          Italic          =   -1  'True
  51.          Strikethrough   =   0   'False
  52.       EndProperty
  53.    End
  54.    Begin Project1.Label TEST 
  55.       Height          =   5000
  56.       Index           =   1
  57.       Left            =   60
  58.       Top             =   60
  59.       Width           =   1000
  60.       _ExtentX        =   1773
  61.       _ExtentY        =   8811
  62.       Alignment       =   1
  63.       BackStyle       =   9
  64.       BorderColor1    =   -2147483647
  65.       BorderColor2    =   -2147483643
  66.       BroderStyle     =   4
  67.       Caption         =   "TEST"
  68.       Effects         =   4
  69.       FillStyle       =   3
  70.       EffectColor     =   -2147483627
  71.       BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  72.          Name            =   "Times New Roman"
  73.          Size            =   48
  74.          Charset         =   178
  75.          Weight          =   700
  76.          Underline       =   0   'False
  77.          Italic          =   -1  'True
  78.          Strikethrough   =   0   'False
  79.       EndProperty
  80.       Rotation        =   1
  81.    End
  82.    Begin VB.Frame Frame1 
  83.       Caption         =   "Properties"
  84.       BeginProperty Font 
  85.          Name            =   "Tahoma"
  86.          Size            =   8.25
  87.          Charset         =   0
  88.          Weight          =   400
  89.          Underline       =   0   'False
  90.          Italic          =   0   'False
  91.          Strikethrough   =   0   'False
  92.       EndProperty
  93.       Height          =   3975
  94.       Left            =   1150
  95.       TabIndex        =   0
  96.       Top             =   1100
  97.       Width           =   5000
  98.       Begin VB.ComboBox ThemeColor 
  99.          BeginProperty Font 
  100.             Name            =   "Tahoma"
  101.             Size            =   8.25
  102.             Charset         =   0
  103.             Weight          =   400
  104.             Underline       =   0   'False
  105.             Italic          =   0   'False
  106.             Strikethrough   =   0   'False
  107.          EndProperty
  108.          Height          =   315
  109.          ItemData        =   "Form1.frx":6852
  110.          Left            =   2600
  111.          List            =   "Form1.frx":6868
  112.          TabIndex        =   16
  113.          Text            =   "NoTheme"
  114.          Top             =   480
  115.          Width           =   2300
  116.       End
  117.       Begin VB.ComboBox BackStyle 
  118.          BeginProperty Font 
  119.             Name            =   "Tahoma"
  120.             Size            =   8.25
  121.             Charset         =   0
  122.             Weight          =   400
  123.             Underline       =   0   'False
  124.             Italic          =   0   'False
  125.             Strikethrough   =   0   'False
  126.          EndProperty
  127.          Height          =   315
  128.          ItemData        =   "Form1.frx":68A8
  129.          Left            =   120
  130.          List            =   "Form1.frx":68CA
  131.          TabIndex        =   15
  132.          Text            =   "BackFill_VerticalOut"
  133.          Top             =   1080
  134.          Width           =   2300
  135.       End
  136.       Begin VB.PictureBox Picture1 
  137.          Height          =   250
  138.          Left            =   1600
  139.          ScaleHeight     =   195
  140.          ScaleWidth      =   435
  141.          TabIndex        =   14
  142.          Top             =   1440
  143.          Width           =   500
  144.       End
  145.       Begin VB.PictureBox Picture2 
  146.          BackColor       =   &H80000005&
  147.          Height          =   250
  148.          Left            =   1600
  149.          ScaleHeight     =   195
  150.          ScaleWidth      =   435
  151.          TabIndex        =   13
  152.          Top             =   1800
  153.          Width           =   500
  154.       End
  155.       Begin VB.PictureBox Picture5 
  156.          BackColor       =   &H80000001&
  157.          Height          =   250
  158.          Left            =   4100
  159.          ScaleHeight     =   195
  160.          ScaleWidth      =   435
  161.          TabIndex        =   12
  162.          Top             =   1440
  163.          Width           =   500
  164.       End
  165.       Begin VB.PictureBox Picture7 
  166.          BackColor       =   &H80000015&
  167.          Height          =   250
  168.          Left            =   4100
  169.          ScaleHeight     =   195
  170.          ScaleWidth      =   435
  171.          TabIndex        =   11
  172.          Top             =   2640
  173.          Width           =   500
  174.       End
  175.       Begin VB.ComboBox Effects 
  176.          BeginProperty Font 
  177.             Name            =   "Tahoma"
  178.             Size            =   8.25
  179.             Charset         =   0
  180.             Weight          =   400
  181.             Underline       =   0   'False
  182.             Italic          =   0   'False
  183.             Strikethrough   =   0   'False
  184.          EndProperty
  185.          Height          =   315
  186.          ItemData        =   "Form1.frx":69A4
  187.          Left            =   2600
  188.          List            =   "Form1.frx":69C6
  189.          TabIndex        =   10
  190.          Text            =   "Shadow"
  191.          Top             =   2280
  192.          Width           =   2300
  193.       End
  194.       Begin VB.PictureBox Picture6 
  195.          BackColor       =   &H80000005&
  196.          Height          =   250
  197.          Left            =   4100
  198.          ScaleHeight     =   195
  199.          ScaleWidth      =   435
  200.          TabIndex        =   9
  201.          Top             =   1755
  202.          Width           =   500
  203.       End
  204.       Begin VB.PictureBox Picture4 
  205.          BackColor       =   &H00FF0000&
  206.          Height          =   250
  207.          Left            =   1600
  208.          ScaleHeight     =   195
  209.          ScaleWidth      =   435
  210.          TabIndex        =   8
  211.          Top             =   3000
  212.          Width           =   500
  213.       End
  214.       Begin VB.PictureBox Picture3 
  215.          BackColor       =   &H00000000&
  216.          Height          =   250
  217.          Left            =   1600
  218.          ScaleHeight     =   195
  219.          ScaleWidth      =   435
  220.          TabIndex        =   7
  221.          Top             =   2640
  222.          Width           =   500
  223.       End
  224.       Begin VB.ComboBox mFillStyle 
  225.          BeginProperty Font 
  226.             Name            =   "Tahoma"
  227.             Size            =   8.25
  228.             Charset         =   178
  229.             Weight          =   400
  230.             Underline       =   0   'False
  231.             Italic          =   0   'False
  232.             Strikethrough   =   0   'False
  233.          EndProperty
  234.          Height          =   315
  235.          ItemData        =   "Form1.frx":6A34
  236.          Left            =   120
  237.          List            =   "Form1.frx":6A53
  238.          TabIndex        =   6
  239.          Text            =   "TextFill_VerticalDown"
  240.          Top             =   2280
  241.          Width           =   2300
  242.       End
  243.       Begin VB.ComboBox Alignment 
  244.          BeginProperty Font 
  245.             Name            =   "Tahoma"
  246.             Size            =   8.25
  247.             Charset         =   0
  248.             Weight          =   400
  249.             Underline       =   0   'False
  250.             Italic          =   0   'False
  251.             Strikethrough   =   0   'False
  252.          EndProperty
  253.          Height          =   315
  254.          ItemData        =   "Form1.frx":6B20
  255.          Left            =   120
  256.          List            =   "Form1.frx":6B2D
  257.          TabIndex        =   5
  258.          Text            =   "Center_Justify"
  259.          Top             =   480
  260.          Width           =   2300
  261.       End
  262.       Begin VB.ComboBox BroderStyle 
  263.          BeginProperty Font 
  264.             Name            =   "Tahoma"
  265.             Size            =   8.25
  266.             Charset         =   0
  267.             Weight          =   400
  268.             Underline       =   0   'False
  269.             Italic          =   0   'False
  270.             Strikethrough   =   0   'False
  271.          EndProperty
  272.          Height          =   315
  273.          ItemData        =   "Form1.frx":6B5E
  274.          Left            =   2600
  275.          List            =   "Form1.frx":6B89
  276.          TabIndex        =   4
  277.          Text            =   "Broder_3DInside"
  278.          Top             =   1080
  279.          Width           =   2300
  280.       End
  281.       Begin VB.TextBox Text1 
  282.          BorderStyle     =   0  'None
  283.          BeginProperty Font 
  284.             Name            =   "MS Sans Serif"
  285.             Size            =   9.75
  286.             Charset         =   178
  287.             Weight          =   400
  288.             Underline       =   0   'False
  289.             Italic          =   0   'False
  290.             Strikethrough   =   0   'False
  291.          EndProperty
  292.          Height          =   300
  293.          Left            =   120
  294.          TabIndex        =   3
  295.          Text            =   "TEST"
  296.          Top             =   3500
  297.          Width           =   2800
  298.       End
  299.       Begin VB.CommandButton Command2 
  300.          Caption         =   "About"
  301.          BeginProperty Font 
  302.             Name            =   "Tahoma"
  303.             Size            =   8.25
  304.             Charset         =   0
  305.             Weight          =   400
  306.             Underline       =   0   'False
  307.             Italic          =   0   'False
  308.             Strikethrough   =   0   'False
  309.          EndProperty
  310.          Height          =   400
  311.          Left            =   4250
  312.          TabIndex        =   2
  313.          Top             =   3400
  314.          Width           =   650
  315.       End
  316.       Begin VB.CommandButton Command1 
  317.          Caption         =   "Font"
  318.          BeginProperty Font 
  319.             Name            =   "Tahoma"
  320.             Size            =   8.25
  321.             Charset         =   0
  322.             Weight          =   400
  323.             Underline       =   0   'False
  324.             Italic          =   0   'False
  325.             Strikethrough   =   0   'False
  326.          EndProperty
  327.          Height          =   400
  328.          Left            =   3000
  329.          TabIndex        =   1
  330.          Top             =   3400
  331.          Width           =   1200
  332.       End
  333.       Begin Project1.Label Label9 
  334.          Height          =   195
  335.          Left            =   2600
  336.          Top             =   840
  337.          Width           =   1245
  338.          _ExtentX        =   2196
  339.          _ExtentY        =   344
  340.          BackStyle       =   0
  341.          BorderColor1    =   -2147483647
  342.          BorderColor2    =   -2147483643
  343.          Caption         =   "BorderStyle"
  344.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  345.             Name            =   "Tahoma"
  346.             Size            =   8.25
  347.             Charset         =   178
  348.             Weight          =   400
  349.             Underline       =   0   'False
  350.             Italic          =   0   'False
  351.             Strikethrough   =   0   'False
  352.          EndProperty
  353.       End
  354.       Begin Project1.Label Label1 
  355.          Height          =   200
  356.          Left            =   120
  357.          Top             =   240
  358.          Width           =   1250
  359.          _ExtentX        =   2196
  360.          _ExtentY        =   344
  361.          BackStyle       =   0
  362.          BorderColor1    =   -2147483647
  363.          BorderColor2    =   -2147483643
  364.          Caption         =   " Alignment"
  365.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  366.             Name            =   "Tahoma"
  367.             Size            =   8.25
  368.             Charset         =   178
  369.             Weight          =   400
  370.             Underline       =   0   'False
  371.             Italic          =   0   'False
  372.             Strikethrough   =   0   'False
  373.          EndProperty
  374.       End
  375.       Begin Project1.Label Label13 
  376.          Height          =   195
  377.          Left            =   2595
  378.          Top             =   2640
  379.          Width           =   1245
  380.          _ExtentX        =   2196
  381.          _ExtentY        =   344
  382.          BackStyle       =   0
  383.          BorderColor1    =   -2147483647
  384.          BorderColor2    =   -2147483643
  385.          Caption         =   "EffectColor >> "
  386.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  387.             Name            =   "Tahoma"
  388.             Size            =   8.25
  389.             Charset         =   178
  390.             Weight          =   400
  391.             Underline       =   0   'False
  392.             Italic          =   0   'False
  393.             Strikethrough   =   0   'False
  394.          EndProperty
  395.       End
  396.       Begin Project1.Label Label10 
  397.          Height          =   195
  398.          Left            =   2595
  399.          Top             =   2040
  400.          Width           =   1245
  401.          _ExtentX        =   2196
  402.          _ExtentY        =   344
  403.          BackStyle       =   0
  404.          BorderColor1    =   -2147483647
  405.          BorderColor2    =   -2147483643
  406.          Caption         =   "Effects"
  407.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  408.             Name            =   "Tahoma"
  409.             Size            =   8.25
  410.             Charset         =   178
  411.             Weight          =   400
  412.             Underline       =   0   'False
  413.             Italic          =   0   'False
  414.             Strikethrough   =   0   'False
  415.          EndProperty
  416.       End
  417.       Begin Project1.Label Label11 
  418.          Height          =   195
  419.          Left            =   2600
  420.          Top             =   1440
  421.          Width           =   1245
  422.          _ExtentX        =   2196
  423.          _ExtentY        =   344
  424.          BackStyle       =   0
  425.          BorderColor1    =   -2147483647
  426.          BorderColor2    =   -2147483643
  427.          Caption         =   "BroderColor1 >> "
  428.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  429.             Name            =   "Tahoma"
  430.             Size            =   8.25
  431.             Charset         =   178
  432.             Weight          =   400
  433.             Underline       =   0   'False
  434.             Italic          =   0   'False
  435.             Strikethrough   =   0   'False
  436.          EndProperty
  437.       End
  438.       Begin Project1.Label Label12 
  439.          Height          =   195
  440.          Left            =   2600
  441.          Top             =   1755
  442.          Width           =   1245
  443.          _ExtentX        =   2196
  444.          _ExtentY        =   344
  445.          BackStyle       =   0
  446.          BorderColor1    =   -2147483647
  447.          BorderColor2    =   -2147483643
  448.          Caption         =   "BroderColor2 >> "
  449.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  450.             Name            =   "Tahoma"
  451.             Size            =   8.25
  452.             Charset         =   178
  453.             Weight          =   400
  454.             Underline       =   0   'False
  455.             Italic          =   0   'False
  456.             Strikethrough   =   0   'False
  457.          EndProperty
  458.       End
  459.       Begin Project1.Label Label7 
  460.          Height          =   195
  461.          Left            =   120
  462.          Top             =   3000
  463.          Width           =   1245
  464.          _ExtentX        =   2196
  465.          _ExtentY        =   344
  466.          BackStyle       =   0
  467.          BorderColor1    =   -2147483647
  468.          BorderColor2    =   -2147483643
  469.          Caption         =   "ForeColor2 >> "
  470.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  471.             Name            =   "Tahoma"
  472.             Size            =   8.25
  473.             Charset         =   178
  474.             Weight          =   400
  475.             Underline       =   0   'False
  476.             Italic          =   0   'False
  477.             Strikethrough   =   0   'False
  478.          EndProperty
  479.       End
  480.       Begin Project1.Label Label5 
  481.          Height          =   195
  482.          Left            =   120
  483.          Top             =   2700
  484.          Width           =   1245
  485.          _ExtentX        =   2196
  486.          _ExtentY        =   344
  487.          BackStyle       =   0
  488.          BorderColor1    =   -2147483647
  489.          BorderColor2    =   -2147483643
  490.          Caption         =   "ForeColor1 >> "
  491.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  492.             Name            =   "Tahoma"
  493.             Size            =   8.25
  494.             Charset         =   178
  495.             Weight          =   400
  496.             Underline       =   0   'False
  497.             Italic          =   0   'False
  498.             Strikethrough   =   0   'False
  499.          EndProperty
  500.       End
  501.       Begin Project1.Label Label3 
  502.          Height          =   195
  503.          Left            =   120
  504.          Top             =   2040
  505.          Width           =   1245
  506.          _ExtentX        =   2196
  507.          _ExtentY        =   344
  508.          BackStyle       =   0
  509.          BorderColor1    =   -2147483647
  510.          BorderColor2    =   -2147483643
  511.          Caption         =   "FillStyle"
  512.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  513.             Name            =   "Tahoma"
  514.             Size            =   8.25
  515.             Charset         =   178
  516.             Weight          =   400
  517.             Underline       =   0   'False
  518.             Italic          =   0   'False
  519.             Strikethrough   =   0   'False
  520.          EndProperty
  521.       End
  522.       Begin Project1.Label LabelText 
  523.          Height          =   375
  524.          Left            =   75
  525.          Top             =   3450
  526.          Width           =   2875
  527.          _ExtentX        =   5080
  528.          _ExtentY        =   661
  529.          BorderColor1    =   -2147483647
  530.          BorderColor2    =   16777215
  531.          BroderStyle     =   11
  532.          Caption         =   ""
  533.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  534.             Name            =   "Tahoma"
  535.             Size            =   8.25
  536.             Charset         =   178
  537.             Weight          =   400
  538.             Underline       =   0   'False
  539.             Italic          =   0   'False
  540.             Strikethrough   =   0   'False
  541.          EndProperty
  542.       End
  543.       Begin Project1.Label Label8 
  544.          Height          =   195
  545.          Left            =   120
  546.          Top             =   1800
  547.          Width           =   1245
  548.          _ExtentX        =   2196
  549.          _ExtentY        =   344
  550.          BackStyle       =   0
  551.          BorderColor1    =   -2147483647
  552.          BorderColor2    =   -2147483643
  553.          Caption         =   "BackColor2 >> "
  554.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  555.             Name            =   "Tahoma"
  556.             Size            =   8.25
  557.             Charset         =   178
  558.             Weight          =   400
  559.             Underline       =   0   'False
  560.             Italic          =   0   'False
  561.             Strikethrough   =   0   'False
  562.          EndProperty
  563.       End
  564.       Begin Project1.Label Label6 
  565.          Height          =   195
  566.          Left            =   120
  567.          Top             =   1500
  568.          Width           =   1245
  569.          _ExtentX        =   2196
  570.          _ExtentY        =   344
  571.          BackStyle       =   0
  572.          BorderColor1    =   -2147483647
  573.          BorderColor2    =   -2147483643
  574.          Caption         =   "BackColor1 >> "
  575.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  576.             Name            =   "Tahoma"
  577.             Size            =   8.25
  578.             Charset         =   178
  579.             Weight          =   400
  580.             Underline       =   0   'False
  581.             Italic          =   0   'False
  582.             Strikethrough   =   0   'False
  583.          EndProperty
  584.       End
  585.       Begin Project1.Label Label4 
  586.          Height          =   195
  587.          Left            =   120
  588.          Top             =   840
  589.          Width           =   1245
  590.          _ExtentX        =   2196
  591.          _ExtentY        =   344
  592.          BackStyle       =   0
  593.          BorderColor1    =   -2147483647
  594.          BorderColor2    =   -2147483643
  595.          Caption         =   "BackStyle"
  596.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  597.             Name            =   "Tahoma"
  598.             Size            =   8.25
  599.             Charset         =   178
  600.             Weight          =   400
  601.             Underline       =   0   'False
  602.             Italic          =   0   'False
  603.             Strikethrough   =   0   'False
  604.          EndProperty
  605.       End
  606.       Begin Project1.Label Label2 
  607.          Height          =   195
  608.          Left            =   2600
  609.          Top             =   240
  610.          Width           =   1245
  611.          _ExtentX        =   2196
  612.          _ExtentY        =   344
  613.          BackStyle       =   0
  614.          BorderColor1    =   -2147483647
  615.          BorderColor2    =   -2147483643
  616.          Caption         =   "ThemeColor"
  617.          BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
  618.             Name            =   "Tahoma"
  619.             Size            =   8.25
  620.             Charset         =   178
  621.             Weight          =   400
  622.             Underline       =   0   'False
  623.             Italic          =   0   'False
  624.             Strikethrough   =   0   'False
  625.          EndProperty
  626.       End
  627.    End
  628. End
  629. Attribute VB_Name = "Form1"
  630. Attribute VB_GlobalNameSpace = False
  631. Attribute VB_Creatable = False
  632. Attribute VB_PredeclaredId = True
  633. Attribute VB_Exposed = False
  634. Option Explicit
  635.  
  636. Dim R           As Integer
  637. Dim Warning     As Boolean
  638. Private Sub Form_Load()
  639.     '>> Form1 Centered
  640.     Form1.Move (Screen.Width - Form1.Width) / 2, (Screen.Height - Form1.Height) / 2
  641.     '>> Form1 Size's
  642.     Form1.Width = 6300
  643.     Form1.Height = 5600
  644. End Sub
  645. Private Sub Alignment_Click()
  646.     For R = 0 To 1
  647.         TEST(R).Alignment = Alignment.ListIndex
  648.     Next R
  649. End Sub
  650. Private Sub Picture7_Click()
  651.     Dia.CancelError = False
  652.     Dia.ShowColor
  653.     Picture7.BackColor = Dia.Color
  654.     For R = 0 To 1
  655.         TEST(R).EffectColor = Picture7.BackColor
  656.     Next R
  657.     Picture7.BackColor = TEST(0).EffectColor
  658. End Sub
  659. Private Sub ThemeColor_Click()
  660.     For R = 0 To 1
  661.         TEST(R).ThemeColor = ThemeColor.ListIndex
  662.     Next R
  663. End Sub
  664. Private Sub mFillStyle_Click()
  665.     For R = 0 To 1
  666.         TEST(R).FillStyle = mFillStyle.ListIndex
  667.     Next R
  668. End Sub
  669. Private Sub BackStyle_Click()
  670.     For R = 0 To 1
  671.         TEST(R).BackStyle = BackStyle.ListIndex
  672.     Next R
  673. End Sub
  674. Private Sub BroderStyle_Click()
  675.     For R = 0 To 1
  676.         TEST(R).BroderStyle = BroderStyle.ListIndex
  677.     Next R
  678. End Sub
  679. Private Sub Effects_Click()
  680.     For R = 0 To 1
  681.         TEST(R).Effects = Effects.ListIndex
  682.     Next R
  683.         Picture7.BackColor = TEST(0).EffectColor
  684. End Sub
  685. Private Sub Picture1_Click()
  686.     Dia.CancelError = False
  687.     Dia.ShowColor
  688.     Picture1.BackColor = Dia.Color
  689.     For R = 0 To 1
  690.         TEST(R).BackColor1 = Picture1.BackColor
  691.     Next R
  692.     Picture1.BackColor = TEST(0).BackColor1
  693. End Sub
  694. Private Sub Picture2_Click()
  695.     Dia.CancelError = False
  696.     Dia.ShowColor
  697.     Picture2.BackColor = Dia.Color
  698.     For R = 0 To 1
  699.         TEST(R).BackColor2 = Picture2.BackColor
  700.     Next R
  701.     Picture2.BackColor = TEST(1).BackColor2
  702. End Sub
  703. Private Sub Picture3_Click()
  704.     Dia.CancelError = False
  705.     Dia.ShowColor
  706.     Picture3.BackColor = Dia.Color
  707.     For R = 0 To 1
  708.         TEST(R).ForeColor1 = Picture3.BackColor
  709.     Next R
  710.     Picture3.BackColor = TEST(0).ForeColor1
  711. End Sub
  712. Private Sub Picture4_Click()
  713.     Dia.CancelError = False
  714.     Dia.ShowColor
  715.     Picture4.BackColor = Dia.Color
  716.     For R = 0 To 1
  717.         TEST(R).ForeColor2 = Picture4.BackColor
  718.     Next R
  719.     Picture4.BackColor = TEST(1).ForeColor2
  720. End Sub
  721. Private Sub Picture5_Click()
  722.     Dia.CancelError = False
  723.     Dia.ShowColor
  724.     Picture5.BackColor = Dia.Color
  725.     For R = 0 To 1
  726.         TEST(R).BorderColor1 = Picture5.BackColor
  727.     Next R
  728.     Picture5.BackColor = TEST(0).BorderColor1
  729. End Sub
  730. Private Sub Picture6_Click()
  731.     Dia.CancelError = False
  732.     Dia.ShowColor
  733.     Picture6.BackColor = Dia.Color
  734.     For R = 0 To 1
  735.         TEST(R).BorderColor2 = Picture6.BackColor
  736.     Next R
  737.     Picture6.BackColor = TEST(1).BorderColor2
  738. End Sub
  739. Private Sub Text1_Change()
  740.     For R = 0 To 1
  741.         TEST(R).Caption = Text1.Text
  742.     Next R
  743. End Sub
  744. Private Sub Command1_Click()
  745. On Error GoTo ErrHandler
  746.    If Warning = False Then
  747.     '>> My Properties.
  748.     Dia.FontName = "Times New Roman"
  749.     Dia.FontSize = 48
  750.     Dia.FontBold = True
  751.     Dia.FontItalic = True
  752.       MsgBox "In Case Of The Label Is (Ratation = Vertical) Please Use True Type Font Only.", vbExclamation, "Warning"
  753.       Warning = True
  754.    End If
  755.     '......................................
  756.     '>> Open Common Dialog Font.
  757.     Dia.ShowFont
  758.     Font.Name = Dia.FontName
  759.     Font.Bold = Dia.FontBold
  760.     Font.Italic = Dia.FontItalic
  761.     Font.Underline = Dia.FontUnderline
  762.     Font.Size = Dia.FontSize
  763.     For R = 0 To 1
  764.         Set TEST(R).Font = Font
  765.     Next R
  766. ErrHandler:
  767. End Sub
  768. Private Sub Command2_Click()
  769.     TEST(1).ShowAbout
  770. End Sub
  771.  
  772.