home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 December / macformat-031.iso / mac / Shareware City / Developers / CopyBits Demo 3.1 / Alert Utilities.h < prev    next >
Encoding:
Text File  |  1995-05-28  |  1.3 KB  |  44 lines  |  [TEXT/MMCC]

  1. //
  2. // Alert Utilities.h v1.0        requires System 7 or later
  3. //
  4. // by Kenneth Worley
  5. // Public Domain
  6. //
  7. // Contact me at:   America Online: KNEworley
  8. //             internet: KNEworley@aol.com or kworley@fascination.com
  9. //
  10. // Routines that make it easier to show a quick error or
  11. // informational dialog.
  12. //
  13.  
  14. #ifndef Alert_Utilities_h
  15. #define Alert_Utilities_h
  16.  
  17. #ifdef __cplusplus
  18. extern "C" {
  19. #endif
  20.  
  21. // DoAlert shows the dialog specified and waits for the user to press
  22. // the OK button (item #1). Then the dialog goes away. If playAlert is
  23. // true, DoAlert plays the system beep.
  24. void    DoAlert( short dialogID, Boolean playAlert );
  25.  
  26. // DoAlertStrID shows the dialog specified just like DoAlert, but
  27. // also puts the string stored in STR resource errStrID into the dialog's
  28. // text field (item #2).
  29. void    DoAlertStrID( short dialogID, Boolean playAlert, short errStrID );
  30.  
  31. // DoAlertStrIndexID does the same thing as DoAlertStrID but gets its
  32. // string from a resource of type STR# with an index number.
  33. void    DoAlertStrIndexID( short dialogID, Boolean playAlert,
  34.             short errStrID, short index );
  35.  
  36. // DoAlertStr shows a dialog just like DoAlert but puts the string
  37. // specified into the dialog's text field (item #2).
  38. void    DoAlertStr( short dialogID, Boolean playAlert, Str255 errString );
  39.  
  40. #ifdef __cplusplus
  41. }
  42. #endif
  43.  
  44. #endif // Alert_Utilities_h