home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 April B / Pcwk4b98.iso / Borland / Dbase50w / SAMPINC.PAK / MESSDLG.H < prev    next >
Text File  |  1994-08-02  |  2KB  |  63 lines

  1. *******************************************************************************
  2. *  FILE:         Messdlg.h
  3. *
  4. *  WRITTEN BY:   Borland Samples Group
  5. *
  6. *  DATE:         2/94
  7. *
  8. *  UPDATED:      6/94
  9. *
  10. *  REVISION:     $Revision:   1.16  $
  11. *
  12. *  VERSION:      dBASE FOR WINDOWS 5.0
  13. *
  14. *  DESCRIPTION:  This is a header file for using the messdlg.prg program,
  15. *                which calls various windows dialogs for displaying messages.
  16. *
  17. *  PARAMETERS:   None
  18. *
  19. *  CALLS:        None
  20. *
  21. *  USAGE:        (in a file)
  22. *                #include <Messdlg.h>
  23. *
  24. *******************************************************************************
  25. *** Message Box Styles
  26. #define PLAIN_MESSAGE               0  && ok/cancel
  27. #define WARNING_MESSAGE            16
  28. #define CONFIRMATION_MESSAGE       32
  29. #define ALERT_MESSAGE              48
  30. #define INFORMATION_MESSAGE        64
  31.  
  32. *** Button Options
  33.  
  34. #define OK_BUTTON                  0
  35. #define OK_CANCEL_BUTTONS          1
  36. #define ABORT_RETRY_IGNORE_BUTTONS 2
  37. #define YES_NO_CANCEL_BUTTONS      3
  38. #define YES_NO_BUTTONS             4
  39. #define RETRY_CANCEL_BUTTONS       5
  40.  
  41.  
  42. *** Button Return Values
  43. #define OK                         1
  44. #define CANCEL                     2
  45. #define ABORT                      3
  46. #define RETRY                      4
  47. #define IGNORE                     5
  48. #define YES                        6
  49. #define NO                         7
  50.  
  51. #define DESKTOP                    0
  52.  
  53. * Calling simplifications.  So user can call function instead of giving
  54. * function type as an argument.
  55. * m = message; t = title
  56.  
  57. #define PlainMessage(m,t)          msgBox(m,t,PLAIN_MESSAGE + OK_BUTTON)
  58. #define WarningMessage(m,t)        msgBox(m,t,WARNING_MESSAGE + OK_CANCEL_BUTTONS)
  59. #define ConfirmationMessage(m,t)   msgBox(m,t,CONFIRMATION_MESSAGE + YES_NO_BUTTONS)
  60. #define AlertMessage(m,t)          msgBox(m,t,ALERT_MESSAGE + OK_BUTTON)
  61. #define InformationMessage(m,t)    msgBox(m,t,INFORMATION_MESSAGE + OK_BUTTON)
  62.  
  63.