Designing Windows and Dialog Boxes

Windows enable the user to view and interact with data. Consistency in window design is important because it enables users to easily transfer their skills and focus on tasks, rather than learn new conventions.

The OS for the H/PC supports most common Win32 application programming interface (API) window functions; however, due to constraints posed by the H/PC screen size, the system is designed for full-screen applications. Windows can be moved around the screen, but they cannot be resized by users. It is possible to create smaller windows for applications, such as a calculator, that can be used while another application is displayed, but most applications should use the entire screen.

While all H/PCs conform to a hardware specification standard, some manufacturers offer features that extend functionality. These additional features include an expanded LCD screen, 640x240 or 640x480 pixels in size. The expanded screen allows applications to display up to 80 characters per line at an easily readable character size, using half-height or full-size VGA graphics resolution. This means the font aspect ratio is similar to a desktop computer and eliminates the feeling that the characters are squeezed onto the screen.

You can take advantage of the expanded screen size by designing applications capable of displaying a full-width view of documents and images. This minimizes the amount of scrolling needed and makes applications easier to use. Programming applications for 640x480 screens does not necessarily require that separate code be maintained for H/PCs with 480x240 screens. Create application windows using default values that indicate full-screen size regardless of its dimensions. Position objects using relative, as opposed to absolute, coordinates.

Primary windows in the OS for the H/PC are similar to all other standard windows. However, unlike other windows, H/PC primary windows do not contain title bars. Instead, they contain a command bar.

Dialog boxes differ from primary windows in that they do not have taskbar window buttons, so users cannot switch between open dialog boxes by tapping a button on the taskbar. Additionally, dialog boxes obtain or display supplemental information related to objects displayed in a primary window.

Dialog boxes must be smaller than primary windows in order to differentiate between windows. Windows-based desktop platforms use a bold system font when displaying dialog box text. Windows CE uses the non-bold system font when displaying text, except for text on a light gray background. The default system font for Windows CE is Tahoma, 9 point.

Note If you are developing Windows CE–based applications under emulation, and you want to lay out windows and dialog boxes that look the same on your desktop computer as they look on an H/PC, use Tahoma.fon.

The OS for the H/PC supports common dialog boxes, which provide a familiar way for users to perform standard tasks common to many applications. Windows CE supports the Color, Print, Open, and Save As dialog boxes, which function the same way as in Windows 95, with the following exceptions:

Common dialog boxes are not movable and are always centered vertically and horizontally on the screen. They always display the Help button.