home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / PRG / AESample.sit / AESample / headers / sample.dlog.h < prev    next >
Text File  |  1996-06-22  |  1KB  |  65 lines

  1. /*
  2.  *--------------------------------------------------------------
  3.  * sample.dlog.h
  4.  *--------------------------------------------------------------
  5.  */
  6. #ifndef __TYPES__
  7.     #include <Types.h>
  8. #endif
  9. #ifndef __EVENTS__
  10.     #include <Events.h>
  11. #endif
  12. #ifndef __DIALOGS__
  13.     #include <Dialogs.h>
  14. #endif
  15.  
  16. /* constants */
  17. enum dialogIDs {
  18.     dlogViewID    = 256,
  19.     dlogAboutID    = 512
  20. };
  21. enum dialogItems {
  22.     aboutWholeArea    = 5
  23. };
  24.  
  25. enum constKeyCodes {
  26.     kHomeKey     = 0x01,
  27.     kEnterKey    = 0x03,
  28.     kEndKey      = 0x04,
  29.     kHelpKey     = 0x05,
  30.     kDeleteKey    = 0x08,
  31.     kPageUpKey    = 0x0B,
  32.     kPgDownKey    = 0x0C,
  33.     kReturnKey    = 0x0D,
  34.     kEscapeKey    = 0x1B,
  35.     kLeftArrow    = 0x1C,
  36.     kRightArrow    = 0x1D,
  37.     kUpArrow     = 0x1E,
  38.     kDownArrow    = 0x1F,
  39.     kOptionKey    = 0x3A,
  40.     kCmmndKey    = 0x37,
  41.     kCntrlKey    = 0x3B,
  42.     kFrwdDelete    = 0x7F
  43. };
  44.  
  45. enum constViewDialogItems {
  46.     diSendIt    = 1,
  47.     diClearIt    = 2,
  48.     diGetNew    = 3,
  49.     diFileName    = 4,
  50.     diVRefNum    = 5,
  51.     diParentID    = 6,
  52.     diCreator    = 7,
  53.     diFileType    = 8,
  54.     diInfoRect    = 14
  55. };
  56.  
  57. /* sample.dlog.c prototypes */
  58. extern Boolean SetUpMyDialogs(void);
  59. extern void DoDialogs(EventRecord *);
  60. extern void DoModelessDlgKeyDown(EventRecord *, short *);
  61. extern void OpenMyViewDialog(const FSSpecPtr);
  62. extern void DoMyViewDialog(const short);
  63. extern void DoAboutMe(void);
  64. extern void FrameBoldButton(DialogRef, const short);
  65.