1. Computing

What is a button? Well, the answer varies depends on who's answering the question. Ask a tailor and he'll tell you a button is the simplest element used to keep clothes together. Ask a computer programmer and he'll probably tell you that a button is the simplest element used to hold a GUI application together.

Look at any Web page or application on your computer desktop and you'll see what we mean. The button is merely an element with text. When you click on it, it does something--usually exactly what the text says it will do. Click the "Save" button and your work is saved. Click the "Delete" button and your work is deleted. Simple, right?

In Shoes applications, the button is not only a simple and commonly-used element, but incredibly easy to create. The button method takes a single argument: the text to display in the button.

Comments
No comments yet. Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>
Top Related Searches
  • shoes
    1. About.com
    2. Computing
    3. Ruby

    ©2014 About.com. All rights reserved.