15.04.2018 Views

programming-for-dummies

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

300<br />

Elements of a User Interface<br />

Showing in<strong>for</strong>mation back to the user<br />

User interfaces can show in<strong>for</strong>mation to the user in a variety of ways, such<br />

as through text, graphics, or even sound. Typically, a user interface displays<br />

data in a window where users can manipulate that data and see their<br />

changes directly, as shown in Figure 10-14.<br />

Figure 10-14:<br />

A user<br />

interface<br />

displays<br />

data in a<br />

window that<br />

users can<br />

manipulate<br />

whether<br />

that data<br />

represents<br />

text,<br />

numbers,<br />

pictures, or<br />

sound.<br />

Using any program is like talking to the computer. You first tell the computer<br />

what you want to do (start writing a letter), the computer obeys (loads your<br />

word processor) and then waits <strong>for</strong> you to do something else. You give<br />

another command to the computer (to <strong>for</strong>mat text you just typed), the computer<br />

obeys and then asks what to do next, and so on.<br />

Normally when you give a command to a program, the program responds<br />

right away. However, sometimes the program asks the user <strong>for</strong> more in<strong>for</strong>mation.<br />

For example, if you give the command to print a document, the program<br />

may want to know how many pages to print. Whenever a program<br />

needs more in<strong>for</strong>mation to carry out a command, it displays a dialog box, as<br />

shown in Figure 10-15.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!