home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / Newton Platform Info / Newton 2.0 Sample Code / Digital Books / Beyond Help-5 / Project Data < prev    next >
Encoding:
Text File  |  1995-11-21  |  743 b   |  28 lines  |  [TEXT/NTP1]

  1. // Copyright © 1993-1995 Apple Computer, Inc. All rights reserved.
  2.  
  3. // app constants
  4. constant kAppMaxWidth := 240 ;
  5. constant kAppMaxHeight := 336 ;
  6.  
  7.  
  8. // read in the book
  9.  
  10. bookFilePath := HOME&"Help Book Source.f" ;
  11.  
  12. // open resource fork for pictures
  13. ref := OpenResFileX(bookFilePath);
  14.  
  15. // load in the book... this sets up a global variable "book".
  16. // *** Note: you MUST remove the "output.book" and "output.help" lines
  17. // *** from the Help source, otherwise it will not compile correctly.
  18. // *** See the BookMaker 1.1 release notes for more info.
  19. load(bookFilePath);
  20.  
  21. // Also note that the warnings about Unknown global function "MakePage"
  22. // and "MakeBlock" can be ignored; they're normal.
  23.  
  24.  
  25. // close the resource file
  26. CloseResFileX(ref) ;
  27.  
  28.