home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / FILEDLG6.ZIP / SOURCE.ZIP / STATIC.C < prev    next >
Text File  |  1990-10-17  |  4KB  |  72 lines

  1. /****************************************************************************
  2.  * STATIC.C --  Static data used by file open/save dialog box               *
  3.  *              procedures. All data defined in this module is              *
  4.  *              stored in the data segment STATICDATA.                      *
  5.  *                                                                          *
  6.  *                                                                          *
  7.  * Modifications --                                                         *
  8.  *      08-Sep-1989 : Initial version.                                      *
  9.  *      11-Oct-1989 : Changed to DLL version of ErrMessageBox function.     *
  10.  *      19-Nov-1989 : Added szUnnamed.                                      *
  11.  *      11-Oct-1990 : Changed szStarDotStar from "*.*" to "*".              *
  12.  *                    Removed szFitReplace.                                 *
  13.  *                                                                          *
  14.  * (c)Copyright 1990 Rick Yoder                                             *
  15.  ****************************************************************************/
  16.  
  17.     #define INCL_WINDIALOGS
  18.     #include <os2.h>
  19.     #include <errmsg.h>
  20.     #include "static.h"
  21.  
  22. /****************************************************************************
  23.  *  Constant data common to all functions                                   *
  24.  ****************************************************************************/
  25.     CHAR szSlash[] = "\\";
  26.     CHAR szStarDotStar[] = "*";
  27.     CHAR szDLLName[] = "FILEDLG";
  28. /****************************************************************************/
  29.  
  30.  
  31. /****************************************************************************
  32.  *  Constant data used in the file save dialog box functions                *
  33.  ****************************************************************************/
  34.     CHAR szDefSaveTitle[] = "Save File";
  35.     CHAR szDefSaveIns[] = "Type file name.";
  36.     CHAR szOverwriteMsg[] = "File already exists. Overwrite?";
  37.     CHAR szUnnamed[] = "UNNAMED";
  38. /****************************************************************************/
  39.  
  40.  
  41. /****************************************************************************
  42.  *  Constant data used in the file open dialog box functions.               *
  43.  ****************************************************************************/
  44.     CHAR szDefOpenTitle[] = "Open File";
  45.     CHAR szDefOpenIns[] = "Select file or type filename.";
  46.     CHAR szSearchTitle[] = "Search for a File";
  47.     CHAR szWildCardChars[] = "*?";
  48.     CHAR szListBoxFull[] = "List box is full.";
  49.     CHAR szFilesFnd[] = "Search complete. %u files found.";
  50.     CHAR szSearching[] = "Searching ...";
  51.     CHAR szSearchCancelled[] = "Search cancelled.";
  52.     CHAR szSearchThreadError[] = "Unable to start search thread.";
  53.     CHAR szIllegalSearch[] = "Do not include a drive or path in the search pattern.";
  54.     CHAR szDelimiters[] = ",";
  55. /****************************************************************************/
  56.  
  57.  
  58. /****************************************************************************
  59.  *  Application defined error/information message data                      *
  60.  ****************************************************************************/
  61.     ERRORMSG appMsgList[] = {
  62.         OVERWRITE_MSG, MB_YESNOCANCEL|MB_ICONQUESTION, szOverwriteMsg,
  63.         LISTBOX_FULL, MB_OK|MB_ICONEXCLAMATION, szListBoxFull,
  64.         FILES_FOUND, MB_OK|MB_ICONEXCLAMATION, szFilesFnd,
  65.         SEARCH_CANCELLED, MB_OK|MB_ICONEXCLAMATION, szSearchCancelled,
  66.         SEARCH_THREAD_ERROR, MB_OK|MB_ICONEXCLAMATION, szSearchThreadError,
  67.         BAD_SEARCH, MB_OK|MB_ICONEXCLAMATION, szIllegalSearch
  68.         };
  69.  
  70.     USHORT appMsgCount = sizeof(appMsgList) / sizeof(ERRORMSG);
  71. /****************************************************************************/
  72.