home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Programming Tool Box
/
SIMS_2.iso
/
code
/
cdspy
/
f_toolbo.frm
< prev
next >
Wrap
Text File
|
1995-02-26
|
8KB
|
241 lines
VERSION 2.00
Begin Form F_Toolbox
BorderStyle = 1 'Fixed Single
Caption = " "
ClientHeight = 4290
ClientLeft = 6750
ClientTop = 2085
ClientWidth = 1710
ControlBox = 0 'False
Height = 4695
Left = 6690
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 4290
ScaleWidth = 1710
Tag = "Toolbar"
Top = 1740
Visible = 0 'False
Width = 1830
Begin Frame FrmToolbox
Caption = "Frame1"
Height = 4155
Left = 90
TabIndex = 0
Top = 90
Width = 1545
Begin CommandButton Cmd_Array
BackColor = &H00C0C0C0&
Caption = "Info"
Enabled = 0 'False
Height = 525
Index = 0
Left = 0
TabIndex = 1
Top = 60
Width = 1500
End
Begin CommandButton Cmd_Array
BackColor = &H00C0C0C0&
Caption = "Start"
Enabled = 0 'False
Height = 525
Index = 1
Left = 0
TabIndex = 8
Top = 540
Width = 1500
End
Begin CommandButton Cmd_Array
BackColor = &H00C0C0C0&
Caption = "Demo"
Enabled = 0 'False
Height = 525
Index = 2
Left = 0
TabIndex = 2
Top = 1080
Width = 1500
End
Begin CommandButton Cmd_Array
BackColor = &H00C0C0C0&
Caption = "Kopieren"
Enabled = 0 'False
Height = 525
Index = 3
Left = 0
TabIndex = 3
Top = 1620
Width = 1500
End
Begin CommandButton Cmd_Array
BackColor = &H00C0C0C0&
Caption = "Installieren"
Enabled = 0 'False
Height = 525
Index = 4
Left = 0
TabIndex = 4
Top = 2160
Width = 1500
End
Begin CommandButton Cmd_Array
BackColor = &H00C0C0C0&
Caption = "Code"
Enabled = 0 'False
Height = 525
Index = 5
Left = 0
TabIndex = 5
Top = 2610
Width = 1500
End
Begin CommandButton Cmd_Array
BackColor = &H00C0C0C0&
Caption = "Hilfedatei"
Enabled = 0 'False
Height = 525
Index = 6
Left = 0
TabIndex = 6
Top = 3150
Width = 1500
End
Begin CommandButton Cmd_Array
BackColor = &H00C0C0C0&
Caption = "Readme"
Enabled = 0 'False
Height = 525
Index = 7
Left = 0
TabIndex = 7
Top = 3690
Width = 1500
End
End
End
Option Explicit
Option Compare Text
Sub CMD_Array_Click (Index As Integer)
Dim i%
Dim L_Verz$
Dim OldActive As control
On Error GoTo Err_Cmd_Array_Click
Set OldActive = screen.ActiveControl
Select Case Index
Case Is = GCM_CMD_INFO
F_Inform.Show
Case Is = GCM_CMD_START
PM_ShowToolbox False
' Aktuelles Verzeichnis und Laufwerk sichern
L_Verz$ = CurDir$
' Aktuelles Verzeichnis und Laufwerk setzen
Rem ChDrive GM_AktElement.Verzeichnis
ChDir GM_AktElement.Verzeichnis
PM_ShellAndWait FM_Verz$(GM_AktElement.Verzeichnis) & GM_AktElement.Startfile$
' Ursprⁿngliches Verzeichnis und Laufwerk wiederherstellen
Rem ChDrive L_Verz$
ChDir L_Verz$
PM_ShowToolbox True
Case Is = GCM_CMD_DEMO
PM_ShowToolbox False
' Aktuelles Verzeichnis und Laufwerk sichern
L_Verz$ = CurDir$
' Aktuelles Verzeichnis und Laufwerk setzen
Rem ChDrive GM_AktElement.Verzeichnis
ChDir GM_AktElement.Verzeichnis
PM_ShellAndWait FM_Verz$(GM_AktElement.Verzeichnis) & GM_AktElement.Demofile$
' Ursprⁿngliches Verzeichnis und Laufwerk wiederherstellen
Rem ChDrive L_Verz$
ChDir L_Verz$
PM_ShowToolbox True
Case Is = GCM_CMD_INSTALL
PM_ShowToolbox False
' MDICDSpy.MnuSetup.Enabled = False
PM_ShellAndWait FM_Verz$(GM_AktElement.Verzeichnis) & GM_AktElement.SetupCommand$
PM_ShowToolbox True
Case Is = GCM_CMD_CODE
F_Codes.Show
Case Is = GCM_CMD_HILFE
PM_ShowToolbox False
' MDICDSpy.MnuSetup.Enabled = False
PM_ShellAndWait GM_AktElement.Hilfefile
PM_ShowToolbox True
Case Is = GCM_CMD_README
PM_ShowToolbox False
' MDICDSpy.MnuSetup.Enabled = False
'PM_EditFile FM_Verz$(GM_DB.Verzeichnis$) & CMD_Array(Index).Tag
PM_LookforExt FM_Verz$(GM_AktElement.Verzeichnis$) & GM_AktElement.Readmefile$
PM_ShowToolbox True
Case Is = GCM_CMD_COPY
PM_ShowToolbox False
F_Kopie.Show 1
PM_ShowToolbox True
If G_CopyFiles$ <> "" Then
PM_CopyFiles
End If
End Select
OldActive.SetFocus
Exit Sub
Err_Cmd_Array_Click:
Select Case Err
Case Is = GCM_OWNER_ERROR
If Index = GCM_CMD_README Then
MsgBox "Die Datei " & Cmd_Array(Index).Tag & " kann nicht betrachtet werden, weil die Verknⁿpfung fehlt!", 48, "Fehler"
End If
Case Else
MsgBox "Die Funktion kann leider nicht ausgefⁿhrt werden.", 48, "Fehler"
End Select
PM_ShowToolbox True
Exit Sub
End Sub
Sub Form_Activate ()
P_SetWindowTop Me
End Sub
Sub Form_Load ()
P_ResizeObjectToForm Me, frmToolbox, 100
P_ResizeMultiObjectToParents Me, frmToolbox, Cmd_Array(0), 8, 0, 0
P_SetWindowTop Me
PM_LiesForm Me
If Me.Left > screen.Width - Me.Width Then
Me.Left = screen.Width - Me.Width
End If
If Me.Top > screen.Height - Me.Height Then
Me.Top = screen.Height - Me.Height
End If
Show3d Me
End Sub
Sub Form_Paint ()
If FM_Refresh() Then
Me.Cmd_Array(GCM_CMD_INFO).Enabled = (GM_AktElement.Info$ <> "")
MDICDSpy.MnuSetupItem(GCM_CMD_INFO).Visible = Me.Cmd_Array(GCM_CMD_INFO).Enabled
Me.Cmd_Array(GCM_CMD_START).Enabled = (GM_AktElement.Startfile$ <> "")
MDICDSpy.MnuSetupItem(GCM_CMD_START).Visible = Me.Cmd_Array(GCM_CMD_START).Enabled
Me.Cmd_Array(GCM_CMD_DEMO).Enabled = (GM_AktElement.Demofile$ <> "")
MDICDSpy.MnuSetupItem(GCM_CMD_DEMO).Visible = Me.Cmd_Array(GCM_CMD_DEMO).Enabled
Me.Cmd_Array(GCM_CMD_COPY).Enabled = GM_AktElement.Copy%
MDICDSpy.MnuSetupItem(GCM_CMD_COPY).Visible = Me.Cmd_Array(GCM_CMD_COPY).Enabled
Me.Cmd_Array(GCM_CMD_INSTALL).Enabled = (GM_AktElement.SetupCommand$ <> "")
MDICDSpy.MnuSetupItem(GCM_CMD_INSTALL).Visible = Me.Cmd_Array(GCM_CMD_INSTALL).Enabled
Me.Cmd_Array(GCM_CMD_CODE).Enabled = GM_AktElement.Code%
MDICDSpy.MnuSetupItem(GCM_CMD_CODE).Visible = Me.Cmd_Array(GCM_CMD_CODE).Enabled
Me.Cmd_Array(GCM_CMD_HILFE).Enabled = (GM_AktElement.Hilfefile$ <> "")
MDICDSpy.MnuSetupItem(GCM_CMD_HILFE).Visible = Me.Cmd_Array(GCM_CMD_HILFE).Enabled
Me.Cmd_Array(GCM_CMD_README).Enabled = (GM_AktElement.Readmefile$ <> "")
MDICDSpy.MnuSetupItem(GCM_CMD_README).Visible = Me.Cmd_Array(GCM_CMD_README).Enabled
End If
End Sub
Sub Form_QueryUnload (Cancel As Integer, UnloadMode As Integer)
UnloadMode = 0
PM_SchreibForm Me
End Sub