How to Create a Polite Backdrop Application
One of the Newton 2.x OS Q&As
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.
How to Create a Polite Backdrop Application (1/19/96)
- Q: How do I get backdrop behavior in my application?
A: Backdrop behavior is given to you for free. If your applications close box is based on protoCloseBox
or protoLargeCloseBox
then your close box will automatically hide itself if your application is the backdrop application. If you also use newtStatusBar
as your status bar proto, the appropriate buttons will shift to fill the gap left by the missing close box. Note that you do not have to use the NewtApp framework to use the newtStatusBar
proto.
The system will automatically override the Close
and Hide
methods so your application cannot be closed.
If you need to know which application is the backdrop application, you can find the appSymbol of the current backdrop app with GetUserConfig('blessedApp)
.
Here are some tips on being a polite backdrop application:
Your application should be full-screen. (Set "Styles" as the backdrop to see why.)
A polite backdrop application will also add the registered auxiliary buttons to its status bar. See the "Using Auxiliary Buttons" in the Newton Programmers Guide (Chapter 18.)