SetDrawOrigin
protoTXView:SetDrawOrigin(origin)
Reconfigures a view for printing.
DISCUSSION
- origin
- A point frame with the following two slots:
x
The horizontal margin, in pixels.
y
The vertical margin, in pixels.
- return value
- An error code, or
nil
if the operation worked.
For paged layouts, the margins are used for each page. The default margin is
(0, 0)
.
For example, to print the page number n for a view with page height h (including margins) in your
- Note
- You can call *
SetGeometry
to reconfigure your view for printing; however, doing so changes your margin settings. If you use *SetDrawOrigin
, your margin settings are not affected.![]()
PrintNextPageScript
, you can call *SetDrawOrigin
as follows and then draw the view:
SetDrawOrigin( {x:0, y:n*h} )
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help