Chapter 11. Programming Objects

The Necessity of Consistent Interface Design

Developing for Microsoft Windows has many benefits, including the fact that when creating a Windows-based application, you don't have to focus on the foundation of the interface design. For instance, Windows already contains the code for drawing forms, complete with menus, Minimize and Maximize buttons, and a border. Windows draws forms consistently, using system colors and standard sizes for common elements. MS-DOS application developers, on the other hand, had to individually create their own interfaces which led to a bewildering amount of variety. Switching from one MS-DOS program to another was more than just a physical task (usually requiring that the first program be shut down before the second was started); it required a mental leap as well. The general behavior of each MS-DOS program was often so unique that you couldn't apply techniques or skills learned in one program to a different program.

Over time, experience taught users and developers alike what worked well and what didn't. Eventually, common interface elements evolved. For instance, we take for granted that every application we run in Windows gives us a nice menu bar at the top of the program's main window. Not all MS-DOS programs offered a menu bar (although most eventually did). When Windows came along, it freed programmers (somewhat) from the details of the basic interface. This sometimes means that developers must give up flexibility, but the trade-off is usually well worth it.

Although developers benefited from the standardized approach of Windows, users gained the most. Users quickly became accustomed to the interface of Windows, and just as quickly they became intolerant of programs that didn't adhere to the Windows standards. For example, if a user could print in three of her favorite programs simply by pressing Ctrl+P, it became unacceptable to have to press Alt+P in another program. As developers, we're always focusing on reusable code. Users want reusable knowledge.

Microsoft Office is a good example of the advantages of interface standardization. Whether you love it or hate it, you have to respect what the Office interface offers users. Switching from one Office program to another, a user is empowered by the fact that commonality in features between the two programs equates to commonality in interaction. If you want to view or change the main options of a program, you look on the Tools menu for an Options item. Creating a new document is always performed from the File menu. If you're looking for the New, Save, or Print button on the toolbar, you always look to its left side; when you need to access Help, you look on the right side of the toolbar. If no toolbar button is available for Help, you look on the Help menu or simply press F1. Through such consistency, Office gives users the ability to leverage skills across applications.

Interface consistency spans many levels. At the highest level, all Windows-based programs have a common interface the Windows interface. (For example, dialog boxes that allow users to close them have an X in the upper right corner, and all forms are drawn using common system colors and sizes.) The next level is application consistency. Office again serves as an excellent example. Toolbars have a similar appearance, including common icons and a common order of buttons. The location of menu items and the assignation of their associated shortcut keys are also standardized. The mechanics of shortcut key behavior is consistent among Windows-based applications. You have complete freedom to assign specific shortcut keys to different menu items in your own application; nevertheless, you should attempt to create shortcuts that are consistent with common Windows-based programs. Creating application consistency demands attention to detail and considerable effort.

The next layer, and the focus of this chapter, is general design consistency. When you look at two dialog boxes in two different programs, they should seem very similar, as though they could both be part of the same program even though their content and purpose might be very different. Windows handles much of this detail by performing all the drawing routines, such as drawing a form or a combo box. However, it's up to you to use a combo box where appropriate and to assign properties that make sense to forms and controls. For instance, why give a dialog box a sizable border or a Maximize button if it doesn't resize its contents? Why create a set of 12 option buttons when a single combo box could be used? In this chapter, you'll learn to avoid these mistakes and to apply a set of standards to your interfaces to give them an appearance and behavior consistent with popular Windows-based applications and Windows itself.

 

Goals of Consistency in Interface Design

The goals of consistency in interface design are

  • Creating interfaces that are consistent within a program, as well as across applications

  • Allowing users to leverage their existing skills (that is, to apply reusable knowledge)

  • Reducing user confusion and frustration

  • Producing visually attractive interfaces to build user confidence and satisfaction

 



Practical Standards for Microsoft Visual Basic. NET
Practical Standards for Microsoft Visual Basic .NET (Pro-Developer)
ISBN: 0735613567
EAN: 2147483647
Year: 2005
Pages: 84

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net