home *** CD-ROM | disk | FTP | other *** search
/ Programming Tool Box / SIMS_2.iso / code / cdspy / f_kopie.frm < prev    next >
Text File  |  1995-02-26  |  6KB  |  200 lines

  1. VERSION 2.00
  2. Begin Form F_Kopie 
  3.    BorderStyle     =   3  'Fixed Double
  4.    Caption         =   "Kopieren"
  5.    ClientHeight    =   1950
  6.    ClientLeft      =   3555
  7.    ClientTop       =   3450
  8.    ClientWidth     =   4320
  9.    Height          =   2355
  10.    Left            =   3495
  11.    LinkTopic       =   "Form1"
  12.    MaxButton       =   0   'False
  13.    MinButton       =   0   'False
  14.    ScaleHeight     =   130
  15.    ScaleMode       =   3  'Pixel
  16.    ScaleWidth      =   288
  17.    Top             =   3105
  18.    Width           =   4440
  19.    Begin CommandButton Cmd_OK 
  20.       BackColor       =   &H00C0C0C0&
  21.       Caption         =   "OK"
  22.       Default         =   -1  'True
  23.       FontBold        =   0   'False
  24.       FontItalic      =   0   'False
  25.       FontName        =   "Arial"
  26.       FontSize        =   9.75
  27.       FontStrikethru  =   0   'False
  28.       FontUnderline   =   0   'False
  29.       Height          =   350
  30.       Left            =   180
  31.       TabIndex        =   2
  32.       Top             =   1500
  33.       Width           =   1320
  34.    End
  35.    Begin CheckBox pchk_Alles 
  36.       BackColor       =   &H00C0C0C0&
  37.       Caption         =   "Alles"
  38.       FontBold        =   0   'False
  39.       FontItalic      =   0   'False
  40.       FontName        =   "Arial"
  41.       FontSize        =   9.75
  42.       FontStrikethru  =   0   'False
  43.       FontUnderline   =   0   'False
  44.       Height          =   240
  45.       Left            =   2940
  46.       TabIndex        =   4
  47.       Top             =   900
  48.       Width           =   1215
  49.    End
  50.    Begin FileListBox Fil_Alles 
  51.       FontBold        =   -1  'True
  52.       FontItalic      =   0   'False
  53.       FontName        =   "Arial"
  54.       FontSize        =   9.75
  55.       FontStrikethru  =   0   'False
  56.       FontUnderline   =   0   'False
  57.       Height          =   270
  58.       Left            =   180
  59.       TabIndex        =   5
  60.       Top             =   810
  61.       Visible         =   0   'False
  62.       Width           =   2085
  63.    End
  64.    Begin CommandButton Cmd_Abbruch 
  65.       BackColor       =   &H00C0C0C0&
  66.       Cancel          =   -1  'True
  67.       Caption         =   "Abbruch"
  68.       FontBold        =   0   'False
  69.       FontItalic      =   0   'False
  70.       FontName        =   "Arial"
  71.       FontSize        =   9.75
  72.       FontStrikethru  =   0   'False
  73.       FontUnderline   =   0   'False
  74.       Height          =   350
  75.       Left            =   1620
  76.       TabIndex        =   3
  77.       Top             =   1500
  78.       Width           =   1320
  79.    End
  80.    Begin TextBox Txt_Zielverzeichnis 
  81.       FontBold        =   0   'False
  82.       FontItalic      =   0   'False
  83.       FontName        =   "Arial"
  84.       FontSize        =   9.75
  85.       FontStrikethru  =   0   'False
  86.       FontUnderline   =   0   'False
  87.       Height          =   360
  88.       Left            =   180
  89.       MaxLength       =   128
  90.       TabIndex        =   1
  91.       Top             =   420
  92.       Width           =   3975
  93.    End
  94.    Begin Line Line1 
  95.       X1              =   12
  96.       X2              =   276
  97.       Y1              =   88
  98.       Y2              =   88
  99.    End
  100.    Begin Label Label1 
  101.       BackStyle       =   0  'Transparent
  102.       Caption         =   "Zielverzeichnis:"
  103.       FontBold        =   -1  'True
  104.       FontItalic      =   0   'False
  105.       FontName        =   "Arial"
  106.       FontSize        =   9.75
  107.       FontStrikethru  =   0   'False
  108.       FontUnderline   =   0   'False
  109.       Height          =   195
  110.       Left            =   180
  111.       TabIndex        =   0
  112.       Top             =   160
  113.       Width           =   1815
  114.    End
  115. End
  116. Option Explicit
  117. Option Compare Text
  118.  
  119. Sub Cmd_Abbruch_Click ()
  120.   G_CopyFiles = ""
  121.   Unload Me
  122. End Sub
  123.  
  124. Sub Cmd_OK_Click ()
  125.   Dim L_Res%
  126.   If Trim$(Txt_Zielverzeichnis) = "" Then
  127.     MsgBox "Geben Sie bitte das Zielverzeichnis ein!", 48, "Fehler"
  128.     Exit Sub
  129.   End If
  130.   L_Res% = FM_CreateDirectory((Txt_Zielverzeichnis))
  131.   If L_Res% = 2 Then
  132.     L_Res% = MsgBox("Das Zielverzeichnis besteht bereits! Eventuell werden darin enthaltene Dateien ⁿberschrieben. Wollen Sie trotzdem weiterfahren?", 36, "Warnung")
  133.     If L_Res% <> 6 Then
  134.       Exit Sub
  135.     End If
  136.     L_Res% = True
  137.   End If
  138.   If L_Res% Then
  139.     G_CopyFiles$ = FM_Verz$(GM_DB.Verzeichnis$) & "," & FM_Verz$((Txt_Zielverzeichnis)) & "," & G_CopyFiles$
  140.   End If
  141.   Unload Me
  142. End Sub
  143.  
  144. Sub Command3_Click ()
  145.   F_Kopie.Tag = "OK"
  146.   Me.Hide
  147. End Sub
  148.  
  149. Sub Form_Load ()
  150. Dim sDefaultVerzeichnis As String
  151.  
  152.   Me.Move (screen.Width - Me.Width) / 2, (screen.Height - Me.Height) / 3
  153.   PChk_Alles.Value = 1
  154.   PM_show3d Me
  155. ' ** Kurt
  156. ' Lesen Default verzeichnis
  157. P_Show3dObjectPixel Me, Txt_Zielverzeichnis, 0
  158. P_Show3dObjectPixel Me, PChk_Alles, 1
  159. Txt_Zielverzeichnis = "C:" & FM_Verz$(GM_DB.Verzeichnis$)
  160.  
  161.  
  162. End Sub
  163.  
  164. Sub Form_QueryUnload (Cancel As Integer, UnloadMode As Integer)
  165. If UnloadMode = 0 Then
  166.   G_CopyFiles = ""
  167. End If
  168.   
  169. End Sub
  170.  
  171. Sub PChk_Alles_Click ()
  172.  
  173.   Const LC_OFFSET = 2
  174.   Dim X%, Y%, i%
  175.   If PChk_Alles.Value = 1 Then
  176.   'PChk_Alles.Tag = Not (Val(PChk_Alles.Tag))
  177.   ' If Val(PChk_Alles.Tag) Then
  178.     Fil_Alles.Path = GM_DB.Verzeichnis$
  179.     Fil_Alles.Refresh
  180.     G_CopyFiles = ""
  181.     For i% = 0 To Fil_Alles.ListCount - 1
  182.       G_CopyFiles = G_CopyFiles + Fil_Alles.List(i%) + ","
  183.     Next i%
  184.   Else
  185.     G_CopyFiles = ""
  186.     F_Auswahl.Show 1
  187.     If G_CopyFiles = "" Then
  188.       PChk_Alles.Value = 1
  189.     End If
  190.   End If
  191. End Sub
  192.  
  193. Sub Txt_Zielverzeichnis_GotFocus ()
  194.   If FM_GotFocusON() <> ON_MOUSE Then
  195.     Txt_Zielverzeichnis.SelStart = 0
  196.     Txt_Zielverzeichnis.SelLength = Len(Txt_Zielverzeichnis)
  197.   End If
  198. End Sub
  199.  
  200.