Re: [NTLK] Newton Formulas

From: Victor Rehorst (victor_at_newtontalk.net)
Date: Wed May 28 2003 - 07:04:36 PDT


Quoting "Eric L. Strobel" <fyzycyst_at_comcast.net>:

> on 05/27/03 11:40 PM, Ted Ramsden at tramsden_at_shaw.ca wrote:
>
> > Is there an easy way to add to the formulas pkg on the newt ? i would
> like
> > to add some nautical and conversion factors !
> >
> > Ted
>
> And I'll reiterate my call for someone knowledgeable to PLEASE give
> serious
> thought to coming up with a "Complete Idiot's Guide to Programming
> Formulas".

Well, the likely reason that no one has written this is because there isn't
really an API for the Formulas roll. To quote the Newton Programmers Guide
page 19-36 (PDF 710):

"The RegFormulas function adds a panel to the Formulas roll. There is no proto
tailored for use as a Formulas panel. Instead, you should attempt to make your
panel look and act like the system-supplied panels. For an example of a
template with the look of the built-in Formulas panels, see the DTS sample
code related to the Prefs and Formulas rolls."

So basicially you can create any protoFloatNGo, compile it into an auto part
package, and then register it in Formulas with RegFormulas (which is likely
descriped in the Newton Programmers Reference somewhere)

-- 
Victor Rehorst - victor_at_newtontalk.net - chuma_at_chuma.org
NewtonTalk list administrator - http://www.newtontalk.net
"There's nothing, nothing better than / that small computer with a pen.
Because one thing I can't abide / Hardware that won't let me decide." -FG
-- 
This is the NewtonTalk list - http://www.newtontalk.net/ for all inquiries
List FAQ/Etiquette/Terms: http://www.newtontalk.net/faq.html
Official Newton FAQ: http://www.chuma.org/newton/faq/


This archive was generated by hypermail 2.1.5 : Wed May 28 2003 - 07:30:01 PDT