Title Banner

Previous Book Contents Book Index Next

Newton Developer Technical Information: Newton Programmer's Guide: 2.1 OS Addendum /
Chapter 2 - Newton Works Draw Application / Draw Application Reference
Proto / protoDrawTool


MakeDragObject

protoDrawTool:MakeDragObject(left, top, right, bottom, style)

Called to create a shape to show while the user drags out a bounding box.

left
The x-coordinate of the start point of the rectangle the user dragged with this tool.

top
The y-coordinate of the start point of the rectangle the user dragged with this tool.

right
The x-coordinate of the end point of the rectangle the user dragged with this tool.

bottom
The y-coordinate of the start point of the rectangle the user dragged with this tool.

style
A style frame with the current user defaults for penSize, penPattern, fillPattern, and font.

return value
A shape array.

DISCUSSION

The default version of this method calls your template's *MakeObject method. This message is only sent if the tool template's dragARectangle slot is nil.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
26 APR 1997



Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help