Progress
Portability Guide
Dimensions of Graphical Displays
Screen dimensions on different platforms vary. Consider the displays where your applications will run so that your procedures do not depend on screen lines that are not available on some displays. Design your interfaces using the number of lines in the smallest display environment.
On Windows, you can also use the CREATE WINDOW statement to specify window size at run time. The size of a default window on Windows depends on your screen resolution. See the Progress Language Reference for more information on the CREATE Widget statement.
In a graphical display, window layouts are generally measured in pixels, not characters. However, Progress lets you plan your window layout in either pixels or in character units. For better portability across different platforms (or across different display resolutions within a single platform), use character units to lay out your screen displays so you do not have to calculate your application layout in pixels and adjust your calculations for different screen resolutions or different platforms.
The window attributes in Table 3–7 let you query the interior size of a maximized window. When a window is maximized, it fills the entire screen. The values these attributes return are the same whether or not the window is maximized.
The values these attributes return exclude the title bar, menu bar, message area, and status area. The interior of a window cannot exceed the area these attributes return.
See the Progress Programming Handbook for more information on windows. For information on window defaults and characteristics on Windows, see the "User-interface Environments" section of this chapter.
Copyright © 2004 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |