5 Creating User Interfaces and Widgets
Sketch 42: A Button
After text from the console or a file and basic mouse gestures, the simple button is the third most popular user input method. It is ubiquitous on web pages, game screens, and any system that requires on/off or yes/no choices from a user. It is, of course, based on the old-fashioned push button that has existed for a long time as an electrical device, and it works in a natural way: push the button and something happens.
Graphically, a button is really just a rectangle. It is usually filled with a color and has a text label or image to indicate its function. When the user clicks the ...
Get An Artist's Guide to Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.