home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hot Shareware 35
/
hot35.iso
/
ficheros
/
LVB
/
T2W32543.ZIP
/
_MDIT2W.FRM
< prev
next >
Wrap
Text File
|
1998-05-21
|
8KB
|
291 lines
VERSION 5.00
Begin VB.MDIForm mdiT2W
AutoShowChildren= 0 'False
BackColor = &H00808080&
Caption = "TIME TO WIN 32-Bit DEMO"
ClientHeight = 7335
ClientLeft = 705
ClientTop = 1245
ClientWidth = 13125
Icon = "_Mdit2w.frx":0000
Begin VB.PictureBox Picture3
Align = 2 'Align Bottom
Height = 465
Left = 0
ScaleHeight = 405
ScaleWidth = 13065
TabIndex = 4
Top = 6870
Width = 13125
Begin VB.Label Label4
Caption = "Label4"
Height = 195
Left = 4770
TabIndex = 9
Top = 105
Width = 3255
End
Begin VB.Label pnl_Version
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Height = 285
Left = 11430
TabIndex = 8
Top = 60
Width = 915
End
Begin VB.Label pnl_Timer
Alignment = 2 'Center
BorderStyle = 1 'Fixed Single
Height = 285
Left = 2880
TabIndex = 7
Top = 60
Width = 915
End
Begin VB.Label Label2
Caption = "elapsed time for ? iterations (in ms)"
Height = 225
Left = 90
TabIndex = 6
Tag = "elapsed time for ~ iterations (in ms)"
Top = 105
Width = 2805
End
Begin VB.Label Label3
Alignment = 1 'Right Justify
Caption = "TIME2WIN version"
Height = 225
Left = 9765
TabIndex = 5
Tag = "elapsed time for ~ iterations (in ms)"
Top = 105
Width = 1440
End
End
Begin VB.PictureBox Picture2
Align = 1 'Align Top
Height = 465
Left = 0
ScaleHeight = 405
ScaleWidth = 13065
TabIndex = 0
Top = 0
Width = 13125
Begin VB.ComboBox cmb_Group
Height = 315
Left = 2250
TabIndex = 2
Top = 60
Width = 4695
End
Begin VB.PictureBox Picture1
AutoSize = -1 'True
Height = 300
Left = 11550
Picture = "_Mdit2w.frx":030A
ScaleHeight = 240
ScaleWidth = 240
TabIndex = 1
Top = 45
Visible = 0 'False
Width = 300
End
Begin VB.Timer Timer1
Enabled = 0 'False
Left = 11025
Top = 0
End
Begin VB.Label Label1
Caption = "&Select a group of functions"
Height = 255
Left = 90
TabIndex = 3
Tag = "this"
Top = 90
Width = 2085
End
End
Begin VB.Menu mnu_List
Caption = "&Window List"
WindowList = -1 'True
End
Begin VB.Menu mnu_Exit
Caption = "E&xit"
End
Begin VB.Menu mnu_NewF
Caption = "2 new functions"
Begin VB.Menu mnu_New
Caption = "Compression : GZIPStringCompress2"
Index = 0
End
Begin VB.Menu mnu_New
Caption = "Compression : GZIPStringExpand2"
Index = 1
End
End
End
Attribute VB_Name = "mdiT2W"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim IsLoaded As Integer
Dim TimerStartOk As Integer
Dim TimerCloseOk As Integer
Dim TimerHandle As Integer
Dim TimerValue As Long
Private Sub cmb_Group_Click()
If (IsLoaded = False) Then Exit Sub
Dim Frm As Form
Select Case cmb_Group.ListIndex
Case 0: Set Frm = frmArray
Case 1: Set Frm = frmBitString
Case 2: Set Frm = frmDayMonth
Case 3: Set Frm = frmDAString
Case 4: Set Frm = frmDALong
Case 5: Set Frm = frmDAType
Case 6: Set Frm = frmIeeenum
Case 7: Set Frm = frmMem
Case 8: Set Frm = frmFile
Case 9: Set Frm = frmCompress
Case 10: Set Frm = frmCrc32
Case 11: Set Frm = frmEncrypt
Case 12: Set Frm = frmMatrix
Case 13: Set Frm = frmIsX
Case 14: Set Frm = frmSerialization
Case 15: Set Frm = frmString
Case 16: Set Frm = frmMisc
Case 17: Set Frm = frmObject
Case 18: Set Frm = frmLanguage
Case 19: Set Frm = frmCrypt
Case 20: Set Frm = frmRegistry
Case 21: Set Frm = frmMediaID
Case 22: Set Frm = frmDIBBitmap
Case 23: Set Frm = frmTile
Case 24: Set Frm = frmPrinter
Case 25: Set Frm = frmDateTime
Case 26: Set Frm = frmComboList
Case 27: Set Frm = frmWindows
Case 28: Set Frm = frmMailNews
Case 29: Set Frm = frmMath
Case 30: Set Frm = frmNetwork
Case 31: Set Frm = frmGradient
Case 32: Set Frm = frmRas
End Select
Load Frm
End Sub
Private Sub MDIForm_Load()
Dim intResult As Integer
Dim hwnd As Long
hwnd = cDisplaySplash(App.Path + "\time2win.dib", 7000 + (6000 * cIsRegistered()), True)
Me.WindowState = 2
IsLoaded = False
pnl_Version = Format(cGetVersion(), "#.00")
Call cCenterWindow(Me.hwnd)
Call sub_Check_Project
Call sub_Initialization
Call sub_Load_Combo(cmb_Group, T2WDirInst + "_group.t2w")
If (cIsRegistered() = True) Then
Label4.Caption = "Thank you for your registration "
Me.Caption = Me.Caption + " (registered)"
Else
Label4.Caption = "Register TIME TO WIN "
Me.Caption = Me.Caption + " (unregistered)"
End If
Timer1.interval = 124
Timer1.Enabled = True
Me.Show
IsLoaded = True
End Sub
Private Sub MDIForm_QueryUnload(Cancel As Integer, UnloadMode As Integer)
Dim intResult As Integer
If (Len(T2WDirTest) > 0) Then
intResult = cChDir(T2WDirInst)
intResult = cKillDirs(T2WDirTest, True)
End If
If (cIsRegistered() = True) Then
MsgBox "Thank you for your registration", , "T2WIN-32.DLL (registered)"
Else
MsgBox "Thank you for registering T2WIN-32.DLL", , "T2WIN-32.DLL (unregistered)"
End If
intResult = cTaskBarDeleteIcon(mdiT2W.hwnd)
End Sub
Private Sub MDIForm_Resize()
Dim intResult As Integer
If (Me.WindowState = 1) Then
intResult = cTaskBarModifyIcon(mdiT2W.hwnd, mdiT2W.Icon, mdiT2W.Caption + " (minimized) ")
End If
If (Me.WindowState = 2) Then
intResult = cTaskBarModifyIcon(mdiT2W.hwnd, mdiT2W.Icon, mdiT2W.Caption)
End If
If (Me.WindowState = 0) Then Me.WindowState = 2
End Sub
Private Sub mnu_Exit_Click()
Unload Me
End Sub
Private Sub Picture2_Click()
Dim intResult As Integer
Dim sDeviceName As String
Dim sDeviceType As String
intResult = cRasEnumDevices(sDeviceName, sDeviceType, True)
Do While (intResult = RAS_SUCCESS)
Debug.Print sDeviceName, sDeviceType
intResult = cRasEnumDevices(sDeviceName, sDeviceType, False)
Loop
End Sub
Private Sub Timer1_Timer()
Label4.Caption = cScrollL(Label4.Caption)
End Sub