Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I found <a href="http://comments.gmane.org/gmane.comp.systems.newton.newtontalk/23047" rel="nofollow">this thread</a> on <a href="http://www.newtontalk.net/" rel="nofollow">NewtonTalk</a>, where <a href="http://www.kallisys.com/" rel="nofollow">Paul Guyot</a> says:</p> <blockquote> <p>You don't need to use protoApp. You can use protoFloater instead. You can then add a nicer NewtonOS 2.x-like status bar to replace the ugly clock/battery picker of protoApp and put the close box on this bar. The trick is to steal the bar from the NewtApp framework, i.e. to use newtStatusBarNoClose. I did this for several projects, it's probably documented as is in the doc (the fact that you can use newtStatusBar[NoClose] instead of protoStatusBar) and you can take advantage of the buttons handling code (to align them automatically on the left and on the right).</p> </blockquote> <p>It turns out the suggestion of using <code>newtStatusBar</code> instead of <code>protoStatus</code> <em>is</em> documented in the Newton Programmer's Guide (2.0) on page 7-19:</p> <blockquote> <p><strong>Note</strong><br> The new status bar protos newtStatusBarNoClose and newtStatusBar, are the preferred way to add a status bar to your applications. These protos, which are described in “NewtApp Applications” (page 4-1), simplify adding buttons and automate hiding the close box when your application is moved into the background.</p> </blockquote> <p>And, Paul's suggestion of using <code>protoFloater</code> instead of <code>protoApp</code> was dead-on, although, I actually ended up using <code>protoDragger</code>. I had to manually add the <code>protoTitle</code> &amp; <code>protoStatusBar</code>:</p> <pre><code>mainView := { _proto: protoDragger, viewflags: vApplication + vVisible + vClickable, appSymbol: kAppSymbol, viewJustify: vjParentFullH + vjParentFullV, viewBounds: {left: 16, top: 16, right: -16, bottom: -16}, stepChildren: [ { _proto: protoTitle, title: kAppTitle }, { _proto: newtStatusBar, menuLeftButtons: [], menuRightButtons: [] }, ], }; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload