home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form3
- BackColor = &H00C0C0C0&
- BorderStyle = 1 'Fixed Single
- Caption = "Choose directory..."
- ClientHeight = 1368
- ClientLeft = 1140
- ClientTop = 1500
- ClientWidth = 6276
- ControlBox = 0 'False
- Height = 1692
- Left = 1092
- LinkMode = 1 'Source
- LinkTopic = "Form3"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1368
- ScaleWidth = 6276
- Top = 1224
- Width = 6372
- Begin CommandButton Commande2
- Caption = "&Abort"
- Height = 375
- Left = 4680
- TabIndex = 1
- Top = 600
- Width = 1455
- End
- Begin CommandButton Commande3
- Caption = ">>"
- Height = 375
- Left = 4080
- TabIndex = 4
- Top = 600
- Width = 375
- End
- Begin TextBox Texte1
- Height = 375
- Left = 120
- TabIndex = 3
- Top = 600
- Width = 3855
- End
- Begin CommandButton Commande1
- Caption = "OK"
- Height = 375
- Left = 4680
- TabIndex = 0
- Top = 120
- Width = 1455
- End
- Begin Label Etiquette1
- BackColor = &H00C0C0C0&
- Caption = "Choose destination directory:"
- Height = 375
- Left = 120
- TabIndex = 2
- Top = 120
- Width = 4335
- End
- Sub Commande1_Click ()
- UserPath$ = Texte1.Text
- If (UserPath$ = "") Then
- If (iLanguage% = LANGUAGE_FRENCH) Then
- MsgBox "Veuillez indiquer un r
- pertoire de destination!"
- MsgBox "Please give a destination directory!"
- End If
- Texte1.SetFocus
- Exit Sub
- End If
- szTest$ = Right$(UserPath$, 1)
- If (szTest$ <> "\") Then
- UserPath$ = UserPath$ + "\"
- End If
- a% = IsFileName(UserPath$, FILENAME_DIRWITHSLASH, CHECK_ROOTDIRSEXIST)
- If (a% = 0) Then
- If (iLanguage% = LANGUAGE_FRENCH) Then
- MsgBox "D
- , ce r
- pertoire n' est pas valable: Veuillez indiquer un nom de r
- pertoire comme C:\ANCIEN\NOUVEAU"
- MsgBox "Sorry, this directory is not valid: Give a dos directory name like C:\OLDDIR\NEWDIR"
- End If
- Texte1.SetFocus
- Exit Sub
- End If
- UserPath$ = UCase$(UserPath)
- DirCanClose% = 1
- bIsSetupOK% = 1
- bUserAbort% = 0
- Unload Form3
- End Sub
- Sub Commande2_Click ()
- If (iLanguage% = LANGUAGE_FRENCH) Then
- a% = MsgBox("Etes vous certain de vouloir abandonner l' installation?", 36)
- a% = MsgBox("Are you sure you wish to cancel this installation?", 36)
- End If
- If (a% = 6) Then
- DirCanClose% = 1
- bIsSetupOK% = 0
- bUserAbort% = 1
- Unload Form3
- End If
- End Sub
- Sub Commande3_Click ()
- Dim sTemp As String * 256
- sTemp$ = String$(256, 0)
- Mid$(sTemp$, 1, Len(Texte1.Text)) = Texte1.Text
- Call SetupBrowseDir(Form3.hWnd, sTemp$)
- iZero% = InStr(sTemp$, Chr$(0))
- szTemp$ = Left$(sTemp$, iZero% - 1)
- Texte1.Text = szTemp$
- Texte1.SetFocus
- Texte1.SelStart = 0
- Texte1.SelLength = Len(Texte1.Text)
- End Sub
- Sub Form_Load ()
- DirCanClose% = 1
- Form3.Move (Screen.Height / 2) - (Height / 2), (Screen.Width / 2) - (Width / 2), Width, Height
- If (iLanguage% = LANGUAGE_FRENCH) Then
- Etiquette1.Caption = "Indiquez le r
- pertoire dans lequel vous souhaitez installer " + szProductName$
- Commande2.Caption = "&Abandonner"
- Etiquette1.Caption = "Choose destination directory for " + szProductName$
- Commande2.Caption = "&Abort"
- End If
- sTemp$ = szWinDir$ + szDefaultDir$
- Texte1.Text = sTemp$
- 'Texte1.SetFocus
- End Sub
- Sub Texte1_Change ()
- If (Len(Texte1.Text) < 3) Then
- Commande1.Enabled = 0
- Commande1.Enabled = 1
- End If
- End Sub
-