Correction for PaintArc, QuickBASIC ToolBox Example, Page 516 (58674)






This article was previously published under Q58674

SUMMARY

The description of the PaintArc ToolBox routine on Page 516 of the "Microsoft QuickBASIC for Apple Macintosh: Language Reference" manual is incorrect. There are three errors in the description, as follows:

  1. The trap number (&HA8CO) is wrong in the example; however, it is correct in the description above (&HA8BF).
  2. Also in the example, the rectangle parameter r%() is incorrectly passed (without VARPTR) in the ToolBox statement.
  3. The rectangle argument is listed as "r%", which signifies a single integer, instead of as "r%()", which signifies an integer array.

MORE INFORMATION

For a list of the Macintosh system traps, see Appendix C of "Inside Macintosh: Volume III," by Apple Computer, published by Addison-Wesley.

The incorrect example from Page 516 is as follows:
   TrapNo%=&HA8CO
   Toolbox "P", TrapNo%, r%(0), (startAngle%), 45
				
It should read as follows:
   TrapNo%=&HA8BF
   Toolbox "P", TrapNo%, VARPTR(r%(0)), (startAngle%), 45
				
The following is a complete example of invoking the PaintArc routine through QuickBASIC's ToolBox statement:
   Toolbox "i"           'Initialize toolbox and variables
   DIM r%(3)
   SetRect r%(0), 10, 10, 100, 100
   startAngle% = 10
   TrapNo%=&HA8BF
   Toolbox "P", TrapNo%, VARPTR(r%(0)), (startAngle%), 45
				

Modification Type: Minor Last Reviewed: 1/9/2003
Keywords: KB58674