Draw a button with text

This is my first attempt at sharing code. This is a simple Codea program that accepts a string to display on top of a button, then draws the button. The button automatically re-sizes for different text sizes. The next version responds to touch by returning the button text.

This is not very exciting, but it is part of a textbook I am writing on developing iPad programs using Codea.

If this works, the code can be found at: http://pastebin.com/Ly4RH7mZ

Great start. The textbook sounds interesting.