home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form frmLanguage
- BorderStyle = 4 'Fixed ToolWindow
- Caption = "Language"
- ClientHeight = 4395
- ClientLeft = 1890
- ClientTop = 3270
- ClientWidth = 7170
- Height = 4800
- Left = 1830
- MaxButton = 0 'False
- MDIChild = -1 'True
- ScaleHeight = 4395
- ScaleWidth = 7170
- ShowInTaskbar = 0 'False
- Top = 2925
- Width = 7290
- Begin VB.ListBox List1
- Height = 1035
- Left = 105
- TabIndex = 9
- Top = 3255
- Width = 6945
- End
- Begin VB.TextBox txt_Result
- BackColor = &H00C0C0C0&
- BorderStyle = 0 'None
- Height = 855
- Left = 105
- Locked = -1 'True
- MultiLine = -1 'True
- ScrollBars = 2 'Vertical
- TabIndex = 7
- Top = 630
- Width = 6945
- End
- Begin VB.Frame Frame1
- Caption = "Some objects"
- Height = 1275
- Left = 2625
- TabIndex = 3
- Top = 1575
- Width = 4425
- Begin VB.TextBox Text1
- Height = 330
- Left = 2415
- TabIndex = 8
- Text = "Standard Text"
- Top = 735
- Width = 1800
- End
- Begin VB.CommandButton Command1
- Caption = "Standard Command"
- Height = 330
- Left = 210
- TabIndex = 4
- Top = 315
- Width = 1905
- End
- Begin Threed.SSCheck SSCheck1
- Height = 330
- Left = 2415
- TabIndex = 6
- Top = 315
- Width = 1695
- _Version = 65536
- _ExtentX = 2990
- _ExtentY = 582
- _StockProps = 78
- Caption = "OLE Check"
- Font3D = 1
- End
- Begin Threed.SSCommand SSCommand2
- Height = 330
- Left = 210
- TabIndex = 5
- Top = 735
- Width = 1905
- _Version = 65536
- _ExtentX = 3360
- _ExtentY = 582
- _StockProps = 78
- Caption = "OLE Command"
- Font3D = 1
- RoundedCorners = 0 'False
- End
- End
- Begin Threed.SSFrame SSFrame1
- Height = 1275
- Index = 1
- Left = 105
- TabIndex = 0
- Tag = "Tag for SSFrame1"
- Top = 1575
- Width = 2325
- _Version = 65536
- _ExtentX = 4101
- _ExtentY = 2249
- _StockProps = 14
- Caption = "&Select a language"
- Begin Threed.SSOption SSOption1
- Height = 225
- Index = 1
- Left = 210
- TabIndex = 2
- Top = 840
- Width = 1905
- _Version = 65536
- _ExtentX = 3360
- _ExtentY = 397
- _StockProps = 78
- Caption = "&French"
- End
- Begin Threed.SSOption SSOption1
- Height = 225
- Index = 0
- Left = 210
- TabIndex = 1
- Top = 420
- Width = 1905
- _Version = 65536
- _ExtentX = 3360
- _ExtentY = 397
- _StockProps = 78
- Caption = "&English"
- Value = -1 'True
- End
- End
- Begin Threed.SSPanel SSPanel1
- Align = 1 'Align Top
- Height = 480
- Left = 0
- TabIndex = 11
- Top = 0
- Width = 7170
- _Version = 65536
- _ExtentX = 12647
- _ExtentY = 847
- _StockProps = 15
- ForeColor = -2147483640
- BackColor = 12632256
- Begin VB.ComboBox cmb_Function
- Height = 315
- Left = 1995
- TabIndex = 12
- Top = 90
- Width = 3840
- End
- Begin Threed.SSCommand cmdNP
- Height = 300
- Index = 1
- Left = 6825
- TabIndex = 16
- Top = 90
- Width = 255
- _Version = 65536
- _ExtentX = 450
- _ExtentY = 529
- _StockProps = 78
- Caption = ">"
- BevelWidth = 1
- Font3D = 3
- RoundedCorners = 0 'False
- Outline = 0 'False
- End
- Begin Threed.SSCommand cmdNP
- Height = 300
- Index = 0
- Left = 5985
- TabIndex = 15
- Top = 90
- Width = 255
- _Version = 65536
- _ExtentX = 450
- _ExtentY = 529
- _StockProps = 78
- Caption = "<"
- BevelWidth = 1
- Font3D = 3
- RoundedCorners = 0 'False
- Outline = 0 'False
- End
- Begin VB.Label Label2
- Caption = "&Select a function"
- Height = 255
- Left = 90
- TabIndex = 14
- Top = 120
- Width = 1815
- End
- Begin Threed.SSCommand SSCommand1
- Default = -1 'True
- Height = 300
- Left = 6300
- TabIndex = 13
- Top = 90
- Width = 465
- _Version = 65536
- _ExtentX = 820
- _ExtentY = 529
- _StockProps = 78
- Caption = "&Go"
- BevelWidth = 1
- RoundedCorners = 0 'False
- Outline = 0 'False
- End
- End
- Begin VB.Label Label1
- Caption = "Contents of the language file"
- Height = 225
- Left = 105
- TabIndex = 10
- Top = 2940
- Width = 6945
- End
- Attribute VB_Name = "frmLanguage"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Option Base 1
- Private Const Iteration = 10
- Dim IsLoaded As Integer
- Dim TimerStartOk As Integer
- Dim TimerCloseOk As Integer
- Dim TimerHandle As Integer
- Dim TimerValue As Long
- Private Sub cmdNP_Click(Index As Integer)
- Call sub_NextPrev(cmb_Function, Index)
- End Sub
- Private Sub cmb_Function_Click()
- If (IsLoaded = False) Then Exit Sub
- Call cDisableFI(mdiT2W.Picture1)
- txt_Result = ""
- DoEvents
- Select Case cmb_Function.ListIndex
- Case 0
- Call TestReadSaveCtlLanguage
- Case 1
- Call TestReadSaveCtlLanguageExt
- End Select
- DoEvents
- Call cEnableFI(mdiT2W.Picture1)
- End Sub
- Private Sub Form_Activate()
- mdiT2W.Label2.Caption = cInsertBlocks(mdiT2W.Label2.Tag, "" & Iteration)
- End Sub
- Private Sub Form_Load()
- Dim intResult As Integer
- IsLoaded = False
- Show
- Call sub_Load_Combo(cmb_Function, T2WDirInst + "_langage.t2w")
- intResult = cChDir(T2WDirTest)
- IsLoaded = True
- End Sub
- Private Sub SSCommand1_Click()
- Call cmb_Function_Click
- End Sub
- Private Sub TestReadSaveCtlLanguage()
- Dim intResult As Integer
- Dim strResult As String
- Dim strDisplay As String
- Dim i As Integer
- Dim File1 As String
- strResult = ""
- strDisplay = ""
- Call cObjectMethod(List1, "clear", "")
- File1 = T2WDirTest + "\save control language.test"
- strDisplay = strDisplay & "SaveCtlLanguage of this Form is '" & cSaveCtlLanguage(Me, 255, File1) & "'" & vbCrLf
- strDisplay = strDisplay & "ReadCtlLanguage of this Form is '" & cReadCtlLanguage(Me, 255, File1) & "'" & vbCrLf
- strDisplay = strDisplay & "Load file '" & File1 & "' into the list box 'List1' is '" & cFileToListBox(List1.hWnd, File1) & "'"
- txt_Result = strDisplay
- 'time the function
- TimerHandle = cTimerOpen()
- TimerStartOk = cTimerStart(TimerHandle)
- For i = 1 To Iteration
- intResult = cReadCtlLanguage(Me, 1, File1)
- Next i
- mdiT2W.pnl_Timer = cTimerRead(TimerHandle)
- TimerCloseOk = cTimerClose(TimerHandle)
- End Sub
- Private Sub TestReadSaveCtlLanguageExt()
- Dim intResult As Integer
- Dim strResult As String
- Dim strDisplay As String
- Dim i As Integer
- Dim File1 As String
- strResult = ""
- strDisplay = ""
- Call cObjectMethod(List1, "clear", "")
- File1 = T2WDirTest + "\save control language extended.test"
- strDisplay = strDisplay & "SaveCtlLanguageExt of this Form is '" & cSaveCtlLanguageExt(Me, 255, File1) & "'" & vbCrLf
- strDisplay = strDisplay & "ReadCtlLanguageExt of this Form is '" & cReadCtlLanguageExt(Me, 255, File1) & "'" & vbCrLf
- strDisplay = strDisplay & "Load file '" & File1 & "' into the list box 'List1' is '" & cFileToListBox(List1.hWnd, File1) & "'"
- txt_Result = strDisplay
- 'time the function
- TimerHandle = cTimerOpen()
- TimerStartOk = cTimerStart(TimerHandle)
- For i = 1 To Iteration
- intResult = cReadCtlLanguageExt(Me, 1, File1)
- Next i
- mdiT2W.pnl_Timer = cTimerRead(TimerHandle)
- TimerCloseOk = cTimerClose(TimerHandle)
- End Sub
- Private Sub SSOption1_Click(Index As Integer, Value As Integer)
- Dim intResult As Integer
- If (cmb_Function.ListIndex = 0) Then
- If (Index = 0) Then
- intResult = cReadCtlLanguage(Me, 255, T2WDirInst + "!languk1.T2W")
- Else
- intResult = cReadCtlLanguage(Me, 255, T2WDirInst + "!langfr1.T2W")
- End If
- Else
- If (Index = 0) Then
- intResult = cReadCtlLanguageExt(Me, 255, T2WDirInst + "!languk2.T2W")
- Else
- intResult = cReadCtlLanguageExt(Me, 255, T2WDirInst + "!langfr2.T2W")
- End If
- End If
- End Sub
-