Sun Microsystems, Inc.
spacerspacer
spacer www.sun.com docs.sun.com |
spacer
black dot
 
 
3.  Getting Help Printing Help Topics To Print a Help Topic   Previous   Contents   Next 
   
 

Printing Configuration

The Print dialog box displays the name of your default printer. You can change the default printer name by modifying the LPDEST environment variable. You can also change the printer for a specific application by modifying the application's application defaults file.

To Set the Printer Resource for an Application

  • Edit your HomeDirectory/.Xdefaults file by adding this resource:

application_name*printer             printer.name

If you do not have an .Xdefaults file, create the file in your home directory.

Example

You want to direct all printed help topics of an application named ImageScan to a printer named laser2 rather than to your default printer.

Add this resource to your .Xdefaults file:

ImageScan*printer:             laser2

Modifying Help Window Colors

You can change the colors of the topic tree or topic display area of a help window by setting application resources. Choosing contrasting colors is important. This ensures that text (foreground color) will be visible against the background color.

To Change Help Window Colors for an Application

  1. Edit your HomeDirectory/.Xdefaults file by adding these resources:

    application_name*DtHelpDialog*DisplayArea.foreground:   color
    application_name*DtHelpDialog*DisplayArea.background:   color
    application_name*DtHelpDialog*TocArea.foreground:   color
    application_name*DtHelpDialog*TocArea.background:   color
    application_name*DtHelpQuickDialog*DisplayArea.foreground:   color
    application_name*DtHelpQuickDialog*DisplayArea.background:    color

    Substitute the name of the application whose help windows you want to change for application_name.

    You can ask your system administrator for a list of colors that you can use or refer to your system documentation.

  2. Save and close the file.

    When you restart your application, it will use the new color values for the topic tree and topic display area in its help windows.

    For example, these resource entries change the foreground and background colors of the topic tree (TocArea) and topic display area (DisplayArea) for an application named DtCardCatalog.

    DtCardCatalog*DtHelpDialog*TocArea.foreground:  yellow
    DtCardCatalog*DtHelpDialog*TocArea.background:  blue
    DtCardCatalog*DtHelpDialog*DisplayArea.foreground:  yellow
    DtCardCatalog*DtHelpDialog*DisplayArea.background:  blue
    DtCardCatalog*DtHelpQuickDialog*DisplayArea.foreground:  yellow
    DtCardCatalog*DtHelpQuickDialog*DisplayArea.background:  blue

    Quick help windows do not have a topic tree, so the TocArea resource is omitted.

 
 
 
  Previous   Contents   Next