facebook

How to create Calculator app? – a few hints not turnkey soln

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #310478 Reply

    hero450
    Member

    ok im trying to make a calculator on my app in mobione how would i go about doing that .

    could someone give me a sourcecode or instructions?

    #310493 Reply

    wayne
    Moderator

    Here is how I would approach your calculator problem:

    1) find a reference solution in HTML (google will help you find example calculator code)
    e.g., http://www.daniweb.com/code/snippet216407.html

    2) use MobiOne Design Center to paint a calculator UI.
    2a) Use custom button components for the numbers and functions. Create an initial button for the numbers and the copy/paste it 8 more times and change it’s text for the appropriate number, 0-9
    2b) Include an input field component for presenting the current value

    3) run the design in the Test Center iPhone emulator to confirm the UI appears the way you want it to

    4) you’ll have to write javascript for the button actions
    See #1 above for example code and inspiration 🙂
    You can use the Test Center to view and edit the HTML, JS, or CSS files that make up your calculator webapp.

    Note, MobiOne does not yet protect customizations of the generated code from a design. Therefore be extra careful not to overwrite your custom js in #3. Currently I put my custom css and js in completely separate files.

    Good luck.

    Wayne
    Genuitec Mobile Team

    #310497 Reply

    hero450
    Member

    i designed the calculator in mobione now i need to know how to incoorperte the button actions because the google link u gave me code has nothing to do with the code that shows in mobione source code

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: How to create Calculator app? – a few hints not turnkey soln

You must be logged in to post in the forum log in