Newton 2.x Q&A Category: Stationery

Copyright © 1997 Newton, Inc. All Rights Reserved. Newton, Newton Technology, Newton Works, the Newton, Inc. logo, the Newton Technology logo, the Light Bulb logo and MessagePad are trademarks of Newton, Inc. and may be registered in the U.S.A. and other countries. Windows is a registered trademark of Microsoft Corp. All other trademarks and company names are the intellectual property of their respective owners.


For the most recent version of the Q&As on the World Wide Web, check the URL: http://www.newton-inc.com/dev/techinfo/qa/qa.htm
If you've copied this file locally,click here to go to the main Newton Q&A page.
This document was exported on 7/23/97.

Stationery


Limits on Stationery Popups (4/30/96)

Q: If I add stationery to Notes, Names, or my application and it is off the bottom of the popup in the new button, I am unable to scroll to it in the stationery popup. Why?

A: There is a problem in the MessagePad 120 and 130 with Newton 2.0 OS constructing popups that contain icons. See the "Picker List is Too Short " Q&A in the Pickers, Popups and Overviews section.


Dynamically Changing the Height of Stationery (11/19/96)

Q: How can I dynamically change the height of my roll-style stationery?

A: To dynamically change the height of roll-style stationery you will need to change the target's height slot, flush the data, and then do a re-target. For instance, you might have the following method in your stationery:

    DoResize: func( newHeight )    begin        target.height := newHeight;        :FlushData();        :DoRetarget();

end;


Properly Registering a ViewDef (1/3/97)

Q: When I add a viewDef using RegisterViewDef on Newton 2.0 OS, I get the "grip of death" alert ("The package 'MyApp' still needs the card you removed...") when the card the viewDef is on is removed. I don't get the grip of death alert when using Newton 2.1 OS. How can I keep the grip of death alert from appearing?

A: In Newton 2.0 OS, you must EnsureInternal the second argument to the RegisterViewDef global function. The RegisterViewDef global function was changed in Newton 2.1 OS to automatically EnsureInternal the second argument.

Note: EnsureInternal-ing something that has been EnsureInternal-ed is a very fast operation so you don't need to worry about checking which platform you are running on.