facebook

Custom Calculations

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MobiOne Archive
  2.  > 
  3. Getting Help – General
Viewing 5 posts - 16 through 20 (of 20 total)
  • Author
    Posts
  • #337691

    nvts
    Member

    CygnusX3,

    I created the app for you to see how javascript and Mobione work together. I attached a zip file with the project.

    See attachment cube.png

    Look at the main_custom.js file under the main-www folder to see the functions that i provided.

    palletLarge(), palletSmall() and clearEntry.

    Make sure I have the correct numbers for the large & small calcs. For the division calcs I used precision and set it to 2. Change this to what you need.

    The clearEntry is to show you how to clear the entry fields for next calc.

    Mobione is great tool.

    Cheers…

    Attachments:
    You must be logged in to view attached files.
    #337697

    CygnusX3
    Member

    Both of you are awesome, and i love you guys, ill post if i get it working right!

    EDIT: The app you Zipped me does exactly what i need it to do :D:D

    Thank you guys for all your time!

    EDIT 2: My next endeavor would be making it so that a number pad pops up instead of a keyboard when you select each text field

    EDIT 3: for image buttons, can i use onClick() commands to change button effects?

    #337715

    nvts
    Member

    Your welcome.

    I was fortunate to find great help (Cincy) when I first dove into Mobione. I am glad that I could help. Just browse the forum and download others projects to learn from.

    Your screen is looking very nice.

    2. I think I have seen that somewhere before. If I find it I will post a link.

    3. Any button will be able to with onClick(). That is similar to the buttons in pallet app now that runs JS when clicked.

    Cheers…

    #337720

    CygnusX3
    Member

    Quick follow-up question.

    Since the 2 buttons i made are just flat images, and don’t have the button depression anumation like a premade button does, i have a second image to simulate a similar effect.

    However i don’t know where that code would go (somewhere in mobione or in the js custom file)

    News Flash, im currently running through codeacademy.com’s javascript training so i can stop asking sime questions 😛

    #337728

    nvts
    Member

    Don’t worry.

    I still ask a lot of questions.

    You will put all your code in the main_custom.js file. Even if you have additional screens in the future. You will always put it in the firstapp screen. Then just call the functions like you see with the two buttons in your app.

    I have not tried the animations, but I do not see why it cant be done as it can be done on web sites. Search the forum and see or the internet and use an HTML container to play with.

    Cheers…

Viewing 5 posts - 16 through 20 (of 20 total)
Reply To: Custom Calculations

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