home *** CD-ROM | disk | FTP | other *** search
/ Chip 2003 January / Chip_2003-01_cd2.bin / editors / songs / SoundEngine / vbmp31615.lzh / sample.LZH / frmLyrics3Input.frm (.txt) < prev    next >
Visual Basic Form  |  2000-04-07  |  9KB  |  298 lines

  1. VERSION 5.00
  2. Begin VB.Form frmLyrics3Input 
  3.    Caption         =   "Lyrics3
  4.    ClientHeight    =   6945
  5.    ClientLeft      =   5775
  6.    ClientTop       =   4035
  7.    ClientWidth     =   7710
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   6945
  10.    ScaleWidth      =   7710
  11.    Begin VB.CommandButton cmdLyricsSet 
  12.       Caption         =   "
  13.       Height          =   375
  14.       Left            =   2940
  15.       TabIndex        =   22
  16.       Top             =   6540
  17.       Width           =   1515
  18.    End
  19.    Begin VB.CommandButton cmdLyrics3Delete 
  20.       Caption         =   "
  21.       Height          =   375
  22.       Left            =   4560
  23.       TabIndex        =   21
  24.       Top             =   6540
  25.       Width           =   915
  26.    End
  27.    Begin VB.CommandButton cmdCancel 
  28.       Cancel          =   -1  'True
  29.       Caption         =   "
  30.       Height          =   375
  31.       Left            =   6660
  32.       TabIndex        =   20
  33.       Top             =   6540
  34.       Width           =   975
  35.    End
  36.    Begin VB.CommandButton cmdReg 
  37.       Caption         =   "
  38.       Default         =   -1  'True
  39.       Height          =   375
  40.       Left            =   5580
  41.       TabIndex        =   19
  42.       Top             =   6540
  43.       Width           =   975
  44.    End
  45.    Begin VB.TextBox txtIMG 
  46.       Height          =   1230
  47.       Left            =   720
  48.       MaxLength       =   60000
  49.       MultiLine       =   -1  'True
  50.       ScrollBars      =   3  '
  51.       TabIndex        =   17
  52.       Top             =   4920
  53.       Width           =   6915
  54.    End
  55.    Begin VB.TextBox txtINF 
  56.       Height          =   1230
  57.       Left            =   720
  58.       MaxLength       =   60000
  59.       MultiLine       =   -1  'True
  60.       ScrollBars      =   3  '
  61.       TabIndex        =   15
  62.       Top             =   3600
  63.       Width           =   6915
  64.    End
  65.    Begin VB.TextBox txtLRY 
  66.       Height          =   1230
  67.       Left            =   720
  68.       MaxLength       =   60000
  69.       MultiLine       =   -1  'True
  70.       ScrollBars      =   3  '
  71.       TabIndex        =   13
  72.       Top             =   2280
  73.       Width           =   6915
  74.    End
  75.    Begin VB.TextBox txtAUT 
  76.       Height          =   270
  77.       Left            =   1860
  78.       MaxLength       =   250
  79.       TabIndex        =   11
  80.       Top             =   840
  81.       Width           =   5775
  82.    End
  83.    Begin VB.TextBox txtETT 
  84.       Height          =   270
  85.       Left            =   1860
  86.       MaxLength       =   250
  87.       TabIndex        =   7
  88.       Top             =   1920
  89.       Width           =   5775
  90.    End
  91.    Begin VB.TextBox txtEAR 
  92.       Height          =   270
  93.       Left            =   1860
  94.       MaxLength       =   250
  95.       TabIndex        =   6
  96.       Top             =   1560
  97.       Width           =   5775
  98.    End
  99.    Begin VB.TextBox txtEAL 
  100.       Height          =   270
  101.       Left            =   1860
  102.       MaxLength       =   250
  103.       TabIndex        =   5
  104.       Top             =   1200
  105.       Width           =   5775
  106.    End
  107.    Begin VB.CheckBox chkLyrField 
  108.       Caption         =   "LYR
  109.       Height          =   315
  110.       Left            =   1020
  111.       TabIndex        =   4
  112.       Top             =   420
  113.       Width           =   2295
  114.    End
  115.    Begin VB.CheckBox chkTimeTag 
  116.       Caption         =   "
  117.       Height          =   315
  118.       Left            =   3360
  119.       TabIndex        =   3
  120.       Top             =   420
  121.       Width           =   2055
  122.    End
  123.    Begin VB.TextBox txtFile 
  124.       Height          =   270
  125.       Left            =   1020
  126.       TabIndex        =   0
  127.       Top             =   60
  128.       Width           =   5655
  129.    End
  130.    Begin VB.CommandButton btOpen 
  131.       Caption         =   "open"
  132.       Height          =   255
  133.       Left            =   6780
  134.       TabIndex        =   1
  135.       Top             =   60
  136.       Width           =   855
  137.    End
  138.    Begin VB.Label Label5 
  139.       Alignment       =   1  '
  140.       BackStyle       =   0  '
  141.       Caption         =   "
  142.       Height          =   255
  143.       Left            =   0
  144.       TabIndex        =   18
  145.       Top             =   4920
  146.       Width           =   675
  147.    End
  148.    Begin VB.Label Label4 
  149.       Alignment       =   1  '
  150.       BackStyle       =   0  '
  151.       Caption         =   "
  152.       Height          =   255
  153.       Left            =   60
  154.       TabIndex        =   16
  155.       Top             =   3600
  156.       Width           =   615
  157.    End
  158.    Begin VB.Label Label3 
  159.       Alignment       =   1  '
  160.       BackStyle       =   0  '
  161.       Caption         =   "
  162.       Height          =   255
  163.       Left            =   60
  164.       TabIndex        =   14
  165.       Top             =   2280
  166.       Width           =   615
  167.    End
  168.    Begin VB.Label Label2 
  169.       Alignment       =   1  '
  170.       BackStyle       =   0  '
  171.       Caption         =   "
  172.       Height          =   255
  173.       Left            =   60
  174.       TabIndex        =   12
  175.       Top             =   840
  176.       Width           =   1755
  177.    End
  178.    Begin VB.Label Label31 
  179.       Alignment       =   1  '
  180.       BackStyle       =   0  '
  181.       Caption         =   "
  182.       Height          =   255
  183.       Left            =   60
  184.       TabIndex        =   10
  185.       Top             =   1200
  186.       Width           =   1755
  187.    End
  188.    Begin VB.Label Label30 
  189.       Alignment       =   1  '
  190.       BackStyle       =   0  '
  191.       Caption         =   "
  192.       Height          =   255
  193.       Left            =   60
  194.       TabIndex        =   9
  195.       Top             =   1560
  196.       Width           =   1755
  197.    End
  198.    Begin VB.Label Label29 
  199.       Alignment       =   1  '
  200.       BackStyle       =   0  '
  201.       Caption         =   "
  202.       Height          =   255
  203.       Left            =   60
  204.       TabIndex        =   8
  205.       Top             =   1920
  206.       Width           =   1755
  207.    End
  208.    Begin VB.Label Label1 
  209.       Alignment       =   1  '
  210.       BackStyle       =   0  '
  211.       Caption         =   "
  212.       Height          =   255
  213.       Left            =   60
  214.       TabIndex        =   2
  215.       Top             =   60
  216.       Width           =   855
  217.    End
  218. Attribute VB_Name = "frmLyrics3Input"
  219. Attribute VB_GlobalNameSpace = False
  220. Attribute VB_Creatable = False
  221. Attribute VB_PredeclaredId = True
  222. Attribute VB_Exposed = False
  223. Private Sub btOpen_Click()
  224.     Dim lyrData As String * 60000    '
  225.     Dim InfData As String * 60000    '
  226.     Dim ImgData As String * 60000    '
  227.     Dim Lyrics3Info As LYRICS3_INFO_VB
  228.     If Dir(txtFile.Text) = "" Then Exit Sub
  229.     If vbmp3_getFileLyrics3InfoVB(Trim(txtFile.Text), Lyrics3Info, lyrData, InfData, ImgData) Then
  230.         chkLyrField.Value = Lyrics3Info.IND_LYR
  231.         chkTimeTag.Value = Lyrics3Info.IND_TIMETAG
  232.         txtAUT.Text = NTrim(Lyrics3Info.AUT)
  233.         txtEAL.Text = NTrim(Lyrics3Info.EAL)
  234.         txtEAR.Text = NTrim(Lyrics3Info.EAR)
  235.         txtETT.Text = NTrim(Lyrics3Info.ETT)
  236.         txtLRY.Text = NTrim(lyrData)
  237.         txtINF.Text = NTrim(InfData)
  238.         txtIMG.Text = NTrim(ImgData)
  239.     Else
  240.         chkLyrField.Value = 0
  241.         chkTimeTag.Value = 0
  242.         txtAUT.Text = ""
  243.         txtEAL.Text = ""
  244.         txtEAR.Text = ""
  245.         txtETT.Text = ""
  246.         txtLRY.Text = ""
  247.         txtINF.Text = ""
  248.         txtIMG.Text = ""
  249.     End If
  250. End Sub
  251. Private Sub cmdCancel_Click()
  252.     Unload Me
  253. End Sub
  254. Private Sub cmdLyrics3Delete_Click()
  255.     If vbmp3_delFileLyrics3Info(Trim(txtFile.Text)) = False Then
  256.         MsgBox "
  257. ", vbCritical + vbOKOnly
  258.         Exit Sub
  259.     End If
  260.     btOpen_Click
  261. End Sub
  262. Private Sub cmdLyricsSet_Click()
  263.     If vbmp3_setReadLyrics3Info(Trim(txtFile.Text)) = False Then
  264.         MsgBox "
  265. ", vbCritical + vbOKOnly
  266.     End If
  267. End Sub
  268. Private Sub cmdReg_Click()
  269.     Dim lyrData As String * 60000    '
  270.     Dim InfData As String * 60000    '
  271.     Dim ImgData As String * 60000    '
  272.     Dim Lyrics3Info As LYRICS3_INFO_VB
  273.     Lyrics3Info.IND_LYR = chkLyrField.Value
  274.     Lyrics3Info.IND_TIMETAG = chkTimeTag.Value
  275.     Lyrics3Info.AUT = txtAUT.Text
  276.     Lyrics3Info.EAL = txtEAL.Text
  277.     Lyrics3Info.EAR = txtEAR.Text
  278.     Lyrics3Info.ETT = txtETT.Text
  279.     lyrData = txtLRY.Text
  280.     InfData = txtINF.Text
  281.     ImgData = txtIMG.Text
  282.     If vbmp3_setFileLyrics3InfoVB(Trim(txtFile.Text), Lyrics3Info, lyrData, InfData, ImgData) = False Then
  283.         MsgBox "
  284. ", vbCritical + vbOKOnly
  285.     End If
  286. End Sub
  287. Private Sub Label6_Click()
  288. End Sub
  289. Private Sub Form_Load()
  290.     Dim lyricsInfo As LYRICS_INFO2
  291.     If vbmp3_getLyrics2(lyricsInfo) Then
  292.         cmdLyricsSet.Enabled = True
  293.     Else
  294.         cmdLyricsSet.Enabled = False
  295.     End If
  296.         
  297. End Sub
  298.