Progress
Portability Guide


System Dialog Statements

Progress allows you to implement native color and font dialog using the SYSTEM-DIALOG COLOR and SYSTEM-DIALOG FONT statements. Using these dialogs, you can allow the user to select a color or font.

The SYSTEM-DIALOG statements provide a dialog box appropriate to the graphical environment in which they run. The SYSTEM-DIALOG statements are not valid in character interfaces.

You can also use the SYSTEM-DIALOG GET-FILE statement to enter a filename assigned to a character variable. This statement displays a native dialog box that allows you to choose an operating system file. The dialog responds to filenames differently. If the user enters a filename or relative pathname, the Windows dialog box never searches the PROPATH and always returns the full pathname of the entered relative pathname appended to the current common dialog directory.

The SYSTEM-DIALOG PRINTER-SETUP statement displays the standard print dialog box. This statement is ignored in character environments.

Table 3–8 lists the SYSTEM-DIALOG statements.

Table 3–8: SYSTEM-DIALOG Statements 
Statement
Description
SYSTEM-DIALOG GET-FILE
Displays a dialog box where you enter a filename that is assigned to a character variable.
SYSTEM-DIALOG COLOR
Displays a dialog box where you choose and associate a system color with the specified dynamic color number.
SYSTEM-DIALOG FONT
Displays a dialog box where you choose and associate a system font with the specified font number.
SYSTEM-DIALOG PRINTER-SETUP
Displays the standard print dialog box. This statement applies only on Windows.

See the Progress Language Reference for more information on these statements.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095