home *** CD-ROM | disk | FTP | other *** search
- frmOpenSave
- Form1
- cmdOpenSave
- Cancel
- cmdOpenSave
- drvOpenSave
- dirOpenSave
- filOpenSave
- txtOpenSave
- lblOpenSave
- Dri&ves:
- lblOpenSave
- lblOpenSave
- &Directories
- lblOpenSave
- File &Name:
- cmdOpenSave_ClickQ
- Index\
- frmOpenSaved
- Caption
- dirOpenSave
- OpenFile
- FileName
- txtOpenSave
- CloseFile
- dirOpenSave_Change
- filOpenSave
- lblOpenSave/
- drvOpenSave_Change>
- drvOpenSave|
- Driveq
- filOpenSave_Click
- ListIndex
- filOpenSave_DblClick
- @ Form_Load
- Screen
- Width
- Height
- Form_QueryUnload
- Cancel
- UnloadMode
- DoUnLoadPreCheck
- txtFileName7
- filOpenSave_PatternChange
- DStop
- filOpenSave_PathChange
- Pattern
- Form_Activate
- CurDrive
- cmdOpenSave_Click
- OK button pressed.
- Something wrong with supplied path or filename.
- Bad path or filename,
- so report that error.
- Error was file didn't exist, but saving so that's ok.
- File doesn't exist, and opening file, so report error.a
- File doesn't exist.
- If the OK button wasn't pressed thenf
- Cancel must have been so unload the dialog.
- dirOpenSave_Change
- When the directory path changes, update the file list box patht
- and the path displayed above the directory list box.s
- Set the current working directory to the new path.r
- drvOpenSave_Change
- When drive changes, update path of directory list box
- and set the current working drive to the new drive.
- filOpenSave_Click
- Display the file selected in the text box up in the File Name text box.
- filOpenSave_DblClick
- When at root of drive, there is no "\" at the end of the path, so add it.
- Check to see if "Open" or "Save" dialog.e
- If "Open" then get the file name and open the file.
- General procedure opens filer
- If "Save" then get the file name and save the file.
- General procedure closes file
- filOpenSave_PathChange
- Notice that this doesn't cause a cascading event.
- filOpenSave_PatternChange
- Notice this doesn't cause a cascading event.v
- Form_Load
- The form is horizontally and vertically centered when loaded.
- Set current drive and directory.
- Display the current path.
- Form_QueryUnload
- The general procedure DoUnLoadPreCheck handles the possible unload optionsx
- for all three forms in this sample application.
-