+ Reply to Thread
Results 1 to 3 of 3

Thread: TI-BASIC Tutorial - Create Custom Menu using GetKey

  1. #1
    exfyre is offline Newbie
    Join Date
    Feb 2008
    Posts
    16
    Rep Power
    16

    TI-BASIC Tutorial - Create Custom Menu using GetKey

    Introduction
    TI-BASIC is the built-in program language that comes with the TI-83/84+ calculators
    Optional Resources
    1. TI-83 Plus Flash Debugger -> for running programs
    2. TI Graph link -> For writing & saving programs
    -or-
    a TI-83/84 Plus calculator -> writes and runs programs


    Answer to previous challenge question:



    Custom Menu and GetKey
    Creating your own custom menu will incorporate many of the functions we have already been over.
    Here is the code we will use to show the menu
    Code:
    :ClrDraw
    :Text(0,0,"1: Start
    :Text(6,0,"2: Stop
    :Text(12,0,"CLEAR: Quit


    Now, were going to make a number increase constantly until the user presses 2 for "STOP," and then make it so they can start it again by pressing 1.

    GetKey explanation:
    once a key is pressed, GetKey returns a specific number according to the key's location on the calculator

    Here is a image showing all the key locations (image from tibasic.wikia.com):


    This will be the final code:
    Code:
    :ClrDraw
    :Text(0,0,"1: Start
    :Text(6,0,"2: Stop
    :Text(12,0,"CLEAR: Quit
    :0->Z
    :1->N
    :Repeat X=45
    :0->X
    :While X=0
    :Z+N->Z
    :Text(18,0,Z
    :GetKey->X
    :End
    :If X=92
    :1->N
    :If X=93
    :0->N
    :End
    Result:
    Attached Thumbnails Attached Thumbnails TI-BASIC Tutorial - Create Custom Menu using GetKey-screen010004.gif   TI-BASIC Tutorial - Create Custom Menu using GetKey-screen010005.gif   TI-BASIC Tutorial - Create Custom Menu using GetKey-screen010007.gif  

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Jordan Guest

    Re: TI-BASIC Tutorial - Create Custom Menu using GetKey

    Great tutorial! I love the animated gifs. +rep

  4. #3
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: TI-BASIC Tutorial - Create Custom Menu using GetKey

    Cool stuff! +rep
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Want to create custom Dropdown with javascript/CSS
    By graphic360 in forum JavaScript and CSS
    Replies: 1
    Last Post: 08-18-2011, 05:40 AM
  2. create handle to a custom timer class?
    By alirezan in forum C and C++
    Replies: 4
    Last Post: 04-29-2011, 07:35 AM
  3. Replies: 1
    Last Post: 12-01-2010, 04:26 AM
  4. CSS Tutorial: How To Create Hover / Rollover Image Menu
    By James.H in forum JavaScript and CSS
    Replies: 0
    Last Post: 03-08-2010, 04:59 PM
  5. Create vertical menu like www.tokonita.com
    By yonghan in forum JavaScript and CSS
    Replies: 5
    Last Post: 09-08-2009, 03:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts