home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1998 / MacHack 1998.toast / The Hacks! / Talking KeyBoard / Source / about.c next >
Encoding:
Text File  |  1998-06-17  |  797 b   |  38 lines  |  [TEXT/CWIE]

  1. // Program Author: Paul Baxter
  2. //    pbaxter@assistivetech.com
  3. //
  4. //
  5.  
  6. #include <Speech.h>
  7. #include <Ctype.h>
  8. #include <DeskBus.h>
  9. #include <Retrace.h>
  10.  
  11. #include "filter.h"
  12. #include "adb.h"
  13. #include "pref.h"
  14.  
  15. #include "globals.h"
  16. #include "speech.h"
  17. #include "about.h"
  18.  
  19. // * ****************************************************************************** *
  20. // *     DoAboutBox
  21. // *             Do an about box
  22. // * ****************************************************************************** *
  23. void DoAboutBox(void)
  24. {
  25.     short item;
  26.     StringHandle theString;
  27.     
  28.     theString = GetString(kSpeakAboutID);
  29.     if (theString) {
  30.         HLock((Handle)theString);
  31.         if (gSpeechChannel) {
  32.             SpeakText(gSpeechChannel, &((*theString)[1]), (*theString)[0]);
  33.         }
  34.         HUnlock((Handle)theString);
  35.     }
  36.     item = NoteAlert(kAboutAlertID, nil);
  37. }
  38.