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

  1. VERSION 5.00
  2. Begin VB.Form frmLyrics 
  3.    Caption         =   "
  4.    ClientHeight    =   5640
  5.    ClientLeft      =   405
  6.    ClientTop       =   795
  7.    ClientWidth     =   6735
  8.    LinkTopic       =   "Form1"
  9.    ScaleHeight     =   5640
  10.    ScaleWidth      =   6735
  11.    Begin VB.TextBox txtAtTotalSec 
  12.       Height          =   270
  13.       Left            =   4800
  14.       TabIndex        =   46
  15.       Top             =   4680
  16.       Width           =   1815
  17.    End
  18.    Begin VB.TextBox txtAtFlames 
  19.       Height          =   270
  20.       Left            =   4800
  21.       TabIndex        =   44
  22.       Top             =   4380
  23.       Width           =   1815
  24.    End
  25.    Begin VB.TextBox txtAtSilence 
  26.       Height          =   270
  27.       Left            =   4800
  28.       TabIndex        =   42
  29.       Top             =   4080
  30.       Width           =   1815
  31.    End
  32.    Begin VB.TextBox txtAtSilencemSec 
  33.       Height          =   270
  34.       Left            =   4800
  35.       TabIndex        =   40
  36.       Top             =   3780
  37.       Width           =   1815
  38.    End
  39.    Begin VB.TextBox txtAtOffset 
  40.       Height          =   270
  41.       Left            =   4800
  42.       TabIndex        =   38
  43.       Top             =   3480
  44.       Width           =   1815
  45.    End
  46.    Begin VB.TextBox txtAtTimeRatio 
  47.       Height          =   270
  48.       Left            =   4800
  49.       TabIndex        =   36
  50.       Top             =   3180
  51.       Width           =   1815
  52.    End
  53.    Begin VB.TextBox txtAtTimeType 
  54.       Height          =   270
  55.       Left            =   1320
  56.       TabIndex        =   34
  57.       Top             =   5280
  58.       Width           =   2115
  59.    End
  60.    Begin VB.TextBox txtAtEditedBy 
  61.       Height          =   270
  62.       Left            =   1320
  63.       TabIndex        =   32
  64.       Top             =   4980
  65.       Width           =   2115
  66.    End
  67.    Begin VB.TextBox txtAtTaggingBy 
  68.       Height          =   270
  69.       Left            =   1320
  70.       TabIndex        =   30
  71.       Top             =   4680
  72.       Width           =   2115
  73.    End
  74.    Begin VB.TextBox txtAtBgfolder 
  75.       Height          =   270
  76.       Left            =   1320
  77.       TabIndex        =   28
  78.       Top             =   4380
  79.       Width           =   2115
  80.    End
  81.    Begin VB.TextBox txtAtBgfile 
  82.       Height          =   270
  83.       Left            =   1320
  84.       TabIndex        =   27
  85.       Top             =   4080
  86.       Width           =   2115
  87.    End
  88.    Begin VB.TextBox txtAtAlbum 
  89.       Height          =   270
  90.       Left            =   1320
  91.       TabIndex        =   26
  92.       Top             =   3780
  93.       Width           =   2115
  94.    End
  95.    Begin VB.TextBox txtAtTitle 
  96.       Height          =   270
  97.       Left            =   1320
  98.       TabIndex        =   22
  99.       Top             =   3480
  100.       Width           =   2115
  101.    End
  102.    Begin VB.TextBox txtAtAirtist 
  103.       Height          =   270
  104.       Left            =   1320
  105.       TabIndex        =   21
  106.       Top             =   3180
  107.       Width           =   2115
  108.    End
  109.    Begin VB.CommandButton cmdViewAt 
  110.       Caption         =   "
  111.       Height          =   255
  112.       Left            =   5580
  113.       TabIndex        =   18
  114.       Top             =   5340
  115.       Width           =   1035
  116.    End
  117.    Begin VB.CheckBox chkViewNoTag 
  118.       Caption         =   "
  119.       Height          =   255
  120.       Left            =   2520
  121.       TabIndex        =   17
  122.       Top             =   2760
  123.       Value           =   1  '
  124.       Width           =   1455
  125.    End
  126.    Begin VB.CommandButton cmdGetLyrics 
  127.       Caption         =   "
  128.       Height          =   255
  129.       Left            =   4080
  130.       TabIndex        =   16
  131.       Top             =   2760
  132.       Width           =   1035
  133.    End
  134.    Begin VB.CheckBox chkViewType 
  135.       Caption         =   "
  136.       Height          =   195
  137.       Left            =   3000
  138.       TabIndex        =   15
  139.       Top             =   2460
  140.       Value           =   1  '
  141.       Width           =   1395
  142.    End
  143.    Begin VB.CommandButton cmdN2W 
  144.       Caption         =   "N->W"
  145.       Height          =   255
  146.       Left            =   960
  147.       TabIndex        =   12
  148.       Top             =   2760
  149.       Width           =   675
  150.    End
  151.    Begin VB.CommandButton cmdW2N 
  152.       Caption         =   "W->N"
  153.       Height          =   255
  154.       Left            =   60
  155.       TabIndex        =   11
  156.       Top             =   2760
  157.       Width           =   795
  158.    End
  159.    Begin VB.CommandButton cmdOutLyFile 
  160.       Caption         =   "
  161.       Height          =   255
  162.       Left            =   5220
  163.       TabIndex        =   10
  164.       Top             =   2760
  165.       Width           =   1395
  166.    End
  167.    Begin VB.CommandButton cmdTimeChange 
  168.       Caption         =   "
  169.       Height          =   255
  170.       Left            =   60
  171.       TabIndex        =   7
  172.       Top             =   2460
  173.       Width           =   1275
  174.    End
  175.    Begin VB.Label Label14 
  176.       Caption         =   "
  177.       Height          =   195
  178.       Left            =   3540
  179.       TabIndex        =   45
  180.       Top             =   4740
  181.       Width           =   1275
  182.    End
  183.    Begin VB.Label Label13 
  184.       Caption         =   "
  185.       Height          =   195
  186.       Left            =   3540
  187.       TabIndex        =   43
  188.       Top             =   4440
  189.       Width           =   1275
  190.    End
  191.    Begin VB.Label Label12 
  192.       Caption         =   "
  193.       Height          =   195
  194.       Left            =   3540
  195.       TabIndex        =   41
  196.       Top             =   4140
  197.       Width           =   1275
  198.    End
  199.    Begin VB.Label Label11 
  200.       Caption         =   "
  201. [ms]"
  202.       Height          =   195
  203.       Left            =   3540
  204.       TabIndex        =   39
  205.       Top             =   3840
  206.       Width           =   1275
  207.    End
  208.    Begin VB.Label Label10 
  209.       Caption         =   "
  210. [ms]"
  211.       Height          =   195
  212.       Left            =   3540
  213.       TabIndex        =   37
  214.       Top             =   3540
  215.       Width           =   1275
  216.    End
  217.    Begin VB.Label Label9 
  218.       Caption         =   "
  219.       Height          =   195
  220.       Left            =   3540
  221.       TabIndex        =   35
  222.       Top             =   3240
  223.       Width           =   1275
  224.    End
  225.    Begin VB.Label Label8 
  226.       Caption         =   "
  227.       Height          =   195
  228.       Left            =   60
  229.       TabIndex        =   33
  230.       Top             =   5340
  231.       Width           =   1275
  232.    End
  233.    Begin VB.Label Label7 
  234.       Caption         =   "
  235.       Height          =   195
  236.       Left            =   60
  237.       TabIndex        =   31
  238.       Top             =   5040
  239.       Width           =   1275
  240.    End
  241.    Begin VB.Label Label6 
  242.       Caption         =   "
  243.       Height          =   195
  244.       Left            =   60
  245.       TabIndex        =   29
  246.       Top             =   4740
  247.       Width           =   1275
  248.    End
  249.    Begin VB.Label Label5 
  250.       Caption         =   "
  251.       Height          =   195
  252.       Left            =   60
  253.       TabIndex        =   25
  254.       Top             =   4440
  255.       Width           =   1275
  256.    End
  257.    Begin VB.Label Label4 
  258.       Caption         =   "
  259.       Height          =   195
  260.       Left            =   60
  261.       TabIndex        =   24
  262.       Top             =   4140
  263.       Width           =   1275
  264.    End
  265.    Begin VB.Label Label3 
  266.       Caption         =   "
  267.       Height          =   195
  268.       Left            =   60
  269.       TabIndex        =   23
  270.       Top             =   3840
  271.       Width           =   1275
  272.    End
  273.    Begin VB.Label Label2 
  274.       Caption         =   "
  275.       Height          =   195
  276.       Left            =   60
  277.       TabIndex        =   20
  278.       Top             =   3540
  279.       Width           =   1275
  280.    End
  281.    Begin VB.Label Label1 
  282.       Caption         =   "
  283.       Height          =   195
  284.       Left            =   60
  285.       TabIndex        =   19
  286.       Top             =   3240
  287.       Width           =   1275
  288.    End
  289.    Begin VB.Line Line1 
  290.       X1              =   0
  291.       X2              =   6720
  292.       Y1              =   3060
  293.       Y2              =   3060
  294.    End
  295.    Begin VB.Label lbWork2 
  296.       AutoSize        =   -1  'True
  297.       BeginProperty Font 
  298.          Name            =   "
  299.          Size            =   15.75
  300.          Charset         =   128
  301.          Weight          =   700
  302.          Underline       =   0   'False
  303.          Italic          =   0   'False
  304.          Strikethrough   =   0   'False
  305.       EndProperty
  306.       Height          =   315
  307.       Left            =   3960
  308.       TabIndex        =   14
  309.       Top             =   6840
  310.       Visible         =   0   'False
  311.       Width           =   120
  312.    End
  313.    Begin VB.Label lbWork1 
  314.       AutoSize        =   -1  'True
  315.       BeginProperty Font 
  316.          Name            =   "
  317.          Size            =   15.75
  318.          Charset         =   128
  319.          Weight          =   700
  320.          Underline       =   0   'False
  321.          Italic          =   0   'False
  322.          Strikethrough   =   0   'False
  323.       EndProperty
  324.       Height          =   315
  325.       Left            =   2700
  326.       TabIndex        =   13
  327.       Top             =   6840
  328.       Visible         =   0   'False
  329.       Width           =   120
  330.    End
  331.    Begin VB.Label lbKaraoke 
  332.       Height          =   255
  333.       Left            =   4560
  334.       TabIndex        =   9
  335.       Top             =   2460
  336.       Width           =   1995
  337.    End
  338.    Begin VB.Label lbTime 
  339.       Height          =   255
  340.       Left            =   1380
  341.       TabIndex        =   8
  342.       Top             =   2460
  343.       Width           =   1455
  344.    End
  345.    Begin VB.Label lbLyrics 
  346.       BackColor       =   &H00FF0000&
  347.       BackStyle       =   0  '
  348.       BeginProperty Font 
  349.          Name            =   "
  350.          Size            =   15.75
  351.          Charset         =   128
  352.          Weight          =   700
  353.          Underline       =   0   'False
  354.          Italic          =   0   'False
  355.          Strikethrough   =   0   'False
  356.       EndProperty
  357.       ForeColor       =   &H00808080&
  358.       Height          =   495
  359.       Index           =   6
  360.       Left            =   0
  361.       TabIndex        =   6
  362.       Top             =   960
  363.       Width           =   6735
  364.    End
  365.    Begin VB.Label lbLyrics 
  366.       AutoSize        =   -1  'True
  367.       BackColor       =   &H00FF0000&
  368.       BackStyle       =   0  '
  369.       BeginProperty Font 
  370.          Name            =   "
  371.          Size            =   15.75
  372.          Charset         =   128
  373.          Weight          =   700
  374.          Underline       =   0   'False
  375.          Italic          =   0   'False
  376.          Strikethrough   =   0   'False
  377.       EndProperty
  378.       ForeColor       =   &H0000FFFF&
  379.       Height          =   315
  380.       Index           =   5
  381.       Left            =   0
  382.       TabIndex        =   5
  383.       Top             =   960
  384.       Width           =   120
  385.    End
  386.    Begin VB.Label lbLyrics 
  387.       BackColor       =   &H00000000&
  388.       BeginProperty Font 
  389.          Name            =   "
  390.          Size            =   15.75
  391.          Charset         =   128
  392.          Weight          =   700
  393.          Underline       =   0   'False
  394.          Italic          =   0   'False
  395.          Strikethrough   =   0   'False
  396.       EndProperty
  397.       ForeColor       =   &H00C0C0C0&
  398.       Height          =   495
  399.       Index           =   4
  400.       Left            =   0
  401.       TabIndex        =   4
  402.       Top             =   1920
  403.       Width           =   6735
  404.    End
  405.    Begin VB.Label lbLyrics 
  406.       BackColor       =   &H00000000&
  407.       BeginProperty Font 
  408.          Name            =   "
  409.          Size            =   15.75
  410.          Charset         =   128
  411.          Weight          =   700
  412.          Underline       =   0   'False
  413.          Italic          =   0   'False
  414.          Strikethrough   =   0   'False
  415.       EndProperty
  416.       ForeColor       =   &H00C0C0C0&
  417.       Height          =   495
  418.       Index           =   3
  419.       Left            =   0
  420.       TabIndex        =   3
  421.       Top             =   1440
  422.       Width           =   6735
  423.    End
  424.    Begin VB.Label lbLyrics 
  425.       BackColor       =   &H00000000&
  426.       BeginProperty Font 
  427.          Name            =   "
  428.          Size            =   15.75
  429.          Charset         =   128
  430.          Weight          =   700
  431.          Underline       =   0   'False
  432.          Italic          =   0   'False
  433.          Strikethrough   =   0   'False
  434.       EndProperty
  435.       ForeColor       =   &H00C0C0C0&
  436.       Height          =   495
  437.       Index           =   2
  438.       Left            =   0
  439.       TabIndex        =   2
  440.       Top             =   960
  441.       Width           =   6735
  442.    End
  443.    Begin VB.Label lbLyrics 
  444.       BackColor       =   &H00000000&
  445.       BeginProperty Font 
  446.          Name            =   "
  447.          Size            =   15.75
  448.          Charset         =   128
  449.          Weight          =   700
  450.          Underline       =   0   'False
  451.          Italic          =   0   'False
  452.          Strikethrough   =   0   'False
  453.       EndProperty
  454.       ForeColor       =   &H00808080&
  455.       Height          =   495
  456.       Index           =   1
  457.       Left            =   0
  458.       TabIndex        =   1
  459.       Top             =   480
  460.       Width           =   6735
  461.    End
  462.    Begin VB.Label lbLyrics 
  463.       BackColor       =   &H00000000&
  464.       BeginProperty Font 
  465.          Name            =   "
  466.          Size            =   15.75
  467.          Charset         =   128
  468.          Weight          =   700
  469.          Underline       =   0   'False
  470.          Italic          =   0   'False
  471.          Strikethrough   =   0   'False
  472.       EndProperty
  473.       ForeColor       =   &H00808080&
  474.       Height          =   495
  475.       Index           =   0
  476.       Left            =   0
  477.       TabIndex        =   0
  478.       Top             =   0
  479.       Width           =   6735
  480.    End
  481. Attribute VB_Name = "frmLyrics"
  482. Attribute VB_GlobalNameSpace = False
  483. Attribute VB_Creatable = False
  484. Attribute VB_PredeclaredId = True
  485. Attribute VB_Exposed = False
  486. Dim timeFlag As Long
  487. Private Sub chkViewNoTag_Click()
  488.     Call vbmp3_setNotTagLyricsLine(chkViewNoTag.Value)
  489. End Sub
  490. Private Sub cmdGetLyrics_Click()
  491.     frmLyrics2.Show
  492.     lyricsData = ""
  493.     Call vbmp3_getCallbackLyricsData(AddressOf vbmp3_getLyricsDataProc)
  494.     frmLyrics2.lbLyrics.Caption = lyricsData
  495.     Dim lyCnt As Long
  496.     Dim cnt As Long
  497. '    lyCnt = vbmp3_getLyricsCount()
  498. '    Dim lyData(1000) As LYRICS_DATA
  499. '    ReDim lyData(lyCnt)
  500. '    Call vbmp3_getLyricsData(lyData(0), lyCnt)
  501. End Sub
  502. Private Sub cmdN2W_Click()
  503.     Call vbmp3_convTimeN2W
  504. End Sub
  505. Private Sub cmdOutLyFile_Click()
  506.     Dim iFile As String
  507.     iFile = left(Trim(frmPLAY.txtFile.Text), Len(Trim(frmPLAY.txtFile.Text)) - 4)
  508.     iFile = iFile + ".lyr"
  509.     Call vbmp3_outLyricsFile(iFile)
  510. End Sub
  511. Private Sub cmdTimeChange_Click()
  512.     If timeFlag = 0 Then
  513.         Call vbmp3_setLyricsTime(1)
  514.         lbTime.Caption = "VBMP3
  515.         timeFlag = 1
  516.     Else
  517.         Call vbmp3_setLyricsTime(0)
  518.         lbTime.Caption = "Winamp
  519.         timeFlag = 0
  520.     End If
  521. End Sub
  522. Private Sub cmdViewAt_Click()
  523.     Dim atTagData As AT_TAG_DATA
  524.     Call vbmp3_getAtTagData(atTagData)
  525.     txtAtAirtist.Text = atTagData.Artist
  526.     txtAtTitle.Text = atTagData.Title
  527.     txtAtAlbum.Text = atTagData.Album
  528.     txtAtBgfile.Text = atTagData.Bgfile
  529.     txtAtBgfolder.Text = atTagData.Bgfolder
  530.     txtAtTaggingBy.Text = atTagData.TaggingBy
  531.     txtAtEditedBy.Text = atTagData.EditedBy
  532.     txtAtTimeType.Text = atTagData.TimeType
  533.     txtAtTimeRatio.Text = atTagData.TimeRatio
  534.     txtAtOffset.Text = atTagData.Offset
  535.     txtAtSilencemSec.Text = atTagData.SilencemSec
  536.     txtAtSilence.Text = atTagData.Silence
  537.     txtAtFlames.Text = atTagData.flames
  538.     txtAtTotalSec.Text = atTagData.TotalSec
  539. End Sub
  540. Private Sub cmdW2N_Click()
  541.     Call vbmp3_convTimeW2N
  542. End Sub
  543. Private Sub Form_Load()
  544.     If timeFlag = 0 Then
  545.         lbTime.Caption = "Winamp
  546.     Else
  547.         lbTime.Caption = "VBMP3
  548.     End If
  549. End Sub
  550. Private Sub Text3_Change()
  551. End Sub
  552.