03.01.2013 Views

Chapter 1

Chapter 1

Chapter 1

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 10.3<br />

I got this by going to my To do list, tapping on the Edit menu item and then tapping on the<br />

Preferences item in the menu pane.<br />

One thing is immediately striking about this dialog: all its controls are in a vertical list. Labels<br />

are right justified and controls are left justified so that controls and labels are centered neatly<br />

on a vertical line. This is a key design decision. It makes many things easier for both user<br />

and developer:<br />

� Navigation from field to field is easy: just use the pointer, or the up and down<br />

navigation keys.<br />

� Dialog layout is easy: the only difficulty is establishing the width of the controls. In UIQ,<br />

for example, all dialogs are exactly 208 or 240 pixels wide (depending on the<br />

configuration), no matter how wide their controls.<br />

� The width of the dialog limits the width of a control: if the Alarm sound field had a very<br />

long item in its choice list, then this would be truncated and the last three displayable<br />

characters would be replaced by an ellipsis to make it fit.<br />

� Because layout is so easy, you don't have to specify the pixel coordinates of each field<br />

in the dialog definition resource. In consequence, there is no need for a GUI-based<br />

resource builder.<br />

This dialog only has three controls. You can have more, but you need to make sure that they<br />

don't overflow the screen vertically. In UIQ, for example, the screen height is 320 pixels, and<br />

any dialog that has more than 8 controls becomes a scrollable dialog, with scroll bars<br />

automatically added on the right hand side. In UIQ, and in many UIs, it is not a good style to<br />

use scrollable dialogs. This has an important impact on dialog design:<br />

� If you need more lines, you can use multipage dialogs (see below).<br />

� Don't create monster dialogs that offer a bewildering set of choices to the user.<br />

Experiment with a number of alternatives before committing a design to code – and<br />

even then, be prepared for further change.<br />

In UIQ, focus is not indicated except for text fields and numeric fields. For text fields, the<br />

flashing cursor indicates the location of focus. For numeric fields, a highlighted background<br />

indicates the location of focus.

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

Saved successfully!

Ooh no, something went wrong!