Freitag Software
The Joy of Writing Software
  • Home
    • Links
  • My Software
    • JavaScript Programs >
      • Dots
      • The Code Cracker
      • The Deserted Ship
      • Flying Text
    • Java Programs >
      • Dot Animation
      • Operation Rescue >
        • Mazes for Programmers
      • Battleship!
      • Blackjack
      • Draw Poker
      • State Pattern Demo
      • Falling Blocks
    • Android Programs >
      • The Oracle
      • RPSLS
      • Gemini Falcon: Asteroid Miner
      • Gemini Falcon: All Boxed In >
        • Gemini Falcon >
          • Privacy Policy
          • A Game Oddity
      • Ay Caramba
      • Dots vs Dots
      • Ants vs Ants
    • Twine Stories
  • Random Thoughts
  • Book Reviews
  • Teaching
    • Real-Life Stories
    • Flying Text
  • About
    • Contact

Placing text and knowing where to accept touch

4/30/2014

 
When creating Major Bob, I had to place text on the screen in specific places and then know when the text was touched so I could do something. To be organized, and to save time, which is the purpose of being organized anyway, I created a spreadsheet to do the calculations for me. (I'm lazy that way.)

Below is the data for the main menu. The 'Play ' menu item was placed at (10, 218) and the other text areas fell into place. I just had to enter the data in the yellow cells. The Rectangle (10, 218, 300, 42) statement indicates where the 'Play' touch area is located. A reminder of what is what is at the bottom of the screen because I'm sure I'll forget all about this by the time I start my next project. ​
Picture

Comments are closed.

    Author

    David Freitag - 
    Someone who enjoys programming and software development.

    Archives

    January 2018
    December 2016
    November 2016
    September 2016
    August 2016
    May 2016
    January 2016
    December 2015
    May 2015
    January 2015
    December 2014
    November 2014
    October 2014
    July 2014
    June 2014
    April 2014
    March 2014

    Categories

    All

    RSS Feed

This website documents my love of programming.  I hope it is useful and entertaining for you to read. 
An old programmer learning new tricks... 
(c) 2017 David A. Freitag, all rights reserved.