Re: [NTLK] Status bar and other questions

From: Laurent Daudelin (nemesys_at_cox.rr.com)
Date: Mon May 20 2002 - 22:04:04 EDT


on 20/05/02 17:08, Rgdtad_at_aol.com at Rgdtad_at_aol.com wrote:

> I am learning NewtScript so that I can program my MP2100 and I am having a
> few problems.
>
> 1. I have a status bar at the bottom of my applications, but when I add
> buttons to it, the Glance that pops up when you tap the clock goes under
> them. How do I make it display on top of them?
>
> 2. How can I dynamically make a NewtScript expression from a user inputted
> string? For example, I have the string "x 2 ^" and I want the expression
> 'Pow(x,2)' in a form that I can evaluate for different values of x. All that
> I am concerned with is math.
>
> 3. How do I get ink-based input into an array of points? I have a region
> that the user can draw in, and I need to get the points that the user drew
> on.
>
> 4. I need some help with statistical analysis. I need to be able to take
> the set of points I obtained from number 3 and do any of the following
> regressions depending on which the user picks: Linear, Quadratic,
> Exponential, Logarithmic, Sine, Cosine, and Power. I would also like to be
> able to fit the data to conic sections (circle, ellipse, horizontal or
> vertical parabola or hyperbola). I do not know how to do the math for these
> since I have not taken any statistics courses.
>
> 5. How should I show that a shape on a possibly cluttered screen is
> selected? I was thinking about making it gray, but that is not consistent
> with the UI guidelines. Also, should I have a separate selection button that
> gives finer control or should I use the normal
> hold-the-stylus-down-for-two-seconds and make the user deal with the big pen
> for the sake of consistency?
>
> In case you are wondering, I am making something similar to Math Xpander
> which is being distributed by Saltire Software (www.saltire.com). The
> program that they call Math Xpander was originally part of a Hewlett-Packard
> WinCE device called the Xpander. It ran as an app under the PocketPC OS on a
> handheld device with a 4 level grayscale screen that was 240*320, 8 MB of
> memory and a small keypad on the bottom. HP's device was canceled just a
> month before it was to go into full production (stupid Carly!!!). HP was
> generous enough to release the programs that made it so cool, but not the
> source.

1. How do you add your items to the status bar? What kind of elements do you
add. Sample of code would help.

2. You might want to look at function 'Compile(string)'.

3. You should have some reading in the Newton Programmer's Guide, any
technical note.

4. See above. You might want to get a statistical math book of some sort.

5. Again, the Newton Programmer's Guide comes to mind.

If you haven't already, I encourage you do download the 'NewtonDev' archive
from UNNA. You'll get all the documentation, Q&A, technical notes, and even
articles in magazines explaining various topics about NewtonScript
programming.

-Laurent.

-- 
=====================================================================
Laurent Daudelin            <http://home.cox.rr.com/nemesys>
Logiciels Nemesys Software         mailto:nemesys_at_cox.rr.com

evil and rude adj.: Both evil and rude, but with the additional connotation that the rudeness was due to malice rather than incompetence. Thus, for example: Microsoft's Windows NT is evil because it's a competent implementation of a bad design; it's rude because it's gratuitously incompatible with Unix in places where compatibility would have been as easy and effective to do; but it's evil and rude because the incompatibilities are apparently there not to fix design bugs in Unix but rather to lock hapless customers and developers into the Microsoft way. Hackish evil and rude is close to the mainstream sense of `evil'.

-- Read the List FAQ/Etiquette: http://www.newtontalk.net/faq.html Read the Newton FAQ: http://www.guns-media.com/mirrors/newton/faq/ This is the NewtonTalk mailing list - http://www.newtontalk.net



This archive was generated by hypermail 2.1.2 : Wed Jun 12 2002 - 20:02:31 EDT