Using the WDB GUI ·
Customizing Colors and Fonts
Home and Help Icons Keyword Index Home Using Help
Line Graphic
Line Graphic

Contents

Keyword Index

Using the WDB GUI
Starting and Exiting the WDB GUI
Loading a Program and Changing Program Settings
Opening Source Files
Changing the Working Directory
Saving and Restoring Debug Sessions
Setting Source Paths
Setting Object Paths
Viewing Your Code
Browsing Functions
Setting Signal Handling
Finding Specific Text in Your Code
Using the Command View
Using the Watch View
Using Quick Watch
Using the Local Variables View
Using the Call Stack View
Using the Threads View
Using the Registers View
Examining Memory Use
Using the Program Console
Using Breakpoints
Advancing Through Your Program
Fixing Code from within the Debugger
Starting and Stopping the Debug Process
Setting Debugger Preferences
{short description of image} Customizing Colors and Fonts

Reference Information

Troubleshooting

Using Help



Bullet Overview
Bullet Customizing Colors
Bullet Customizing Fonts
Bullet Tips
Bullet See Also

Line Graphic

Overview

The WDB GUI uses default colors and fonts defined by the Common Desktop Environment (CDE) Window Manager. You can use the CDE Style Manager to change the color scheme and font size for the WDB GUI.

You can also override the CDE settings by defining values for colors and fonts in the application defaults file:

/opt/langtools/wdb/app-defaults/Wdb

If you are not using the CDE Window Manager, you may want to define the values for colors and fonts in your environment, or copy the application defaults file to the following location and customize the file for all users on your system:

/etc/opt/langtools/wdb/app-defaults/WdbLine Graphic

Customizing Colors

Default colors for Motif widgets are defined by the CDE Style Manager, and default colors for the WDB GUI are defined by the X server colormap. Therefore, you can customize WDB GUI colors in two ways:

Using a CDE color palette

You can create a palette similar to a typical PC color palette, and use the CDE Style Manager to apply the palette to your desktop. The colors are defined using red-green-blue (RGB) values.

To define a new CDE color palette similar to typical PC default colors

  1. Create the following file in your desktop palettes directory:

    $HOME/.dt/palettes/WinNT-default.dp

    Add the following text to the file you have created:

    #000000008000
    #800080008000
    #000080008000
    #ff00ff00ff00
    #c000c000c000
    #c000c000c000
    #800080008000
    #c000c000c000

  2. From the CDE Style Manager, click Color. In the Palettes selection box, click WinNT-default, then click OK.

Overriding CDE Colors for the WDB GUI

You can override the CDE default colors for the WDB GUI by setting color values in your environment or in the application defaults file:

/opt/langtools/wdb/app-defaults/Wdb

The following table shows how to assign color values to specific windows and widgets.

To set: Assign a color value to:
Foreground, background, and trough colors for all windows and widgets
  • Wdb.*.foreground: color_value
  • Wdb.*.background: color_value
  • Wdb.*.troughColor: color_value
Foreground and background colors for text windows and list windows
  • Wdb.*.XmText.foreground: color_value
  • Wdb.*.XmText.background: color_value
  • Wdb.*.XmTextField.foreground: color_value
  • Wdb.*.XmTextField.background: color_value
  • Wdb.*.XmList.foreground: color_value
  • Wdb.*.XmList.background: color_value
ToolTips associated with the toolbar buttons
  • Wdb*ButtonBar*popupForeground: color_value
  • Wdb*ButtonBar*popupBackground: color_value
Toolbar button highlight color
  • Wdb*ButtonBar*highlightColor: color_value
Watch variable highlight color
  • Wdb*XmLTree*highlightColor: color_value

The following examples show how to set color values using:
  • standard text color names (see example).
  • or RGB number values (see example).
For example, set WDB GUI colors similar to typical PC default colors using the following text color names:
Wdb.*.foreground: black
Wdb.*.background: grey75
Wdb.*.troughColor: grey85
Wdb.*.XmText.foreground: black
Wdb.*.XmText.background: white
Wdb.*.XmTextField.foreground: black
Wdb.*.XmTextField.background: white
Wdb.*.XmList.foreground: black
Wdb.*.XmList.background: white
Wdb*ButtonBar*popupForeground: Black
Wdb*ButtonBar*popupBackground: LightYellow
Wdb*ButtonBar*highlightColor: grey60
Wdb*XmLTree*highlightColor: black

Or, set WDB GUI colors similar to typical PC default colors using the following RGB values:
Wdb.*.foreground: rgb:0000/0000/0000
Wdb.*.background: rgb:c000/c000/c000
Wdb.*.troughColor: rgb:e000/e000/e000
Wdb.*.XmText.foreground: rgb:0000/0000/0000
Wdb.*.XmText.background: rgb:ffff/ffff/ffff
Wdb.*.XmTextField.foreground: rgb:0000/0000/0000
Wdb.*.XmTextField.background: rgb:ffff/ffff/ffff
Wdb.*.XmList.foreground: rgb:0000/0000/0000
Wdb.*.XmList.background: rgb:ffff/ffff/ffff
Wdb*ButtonBar*popupForeground: rgb:0000/0000/0000
Wdb*ButtonBar*popupBackground: rgb:ffff/ffff/e100
Wdb*ButtonBar*highlightColor: rgb:8000/8000/8000
Wdb*XmLTree*highlightColor: rgb:0000/0000/0000
Line Graphic

Customizing Fonts

To customize fonts for WDB GUI

You can set new font values in your environment or in the application defaults file. Also, some examples for customizing fonts are provided in the application defaults file:

/opt/langtools/wdb/app-defaults/Wdb

  1. Set a default font list for all widgets:

    Wdb.*.fontList:

  2. Then override any Motif widget classes for which you want to set specific font lists:

    Wdb.*.XmText.*.fontList:
    Wdb.*.XmTextField.*.fontList:
    Wdb.*.XmButton.*.fontList:
    Wdb.*.XmLabel.*.fontList:
For example, to set fonts that are similar to typical PC default fonts:

Wdb.*.fontList: *-bold-r-normal-serif-12-*-*-*-m-*:
Wdb.*.XmText.*.fontList: *-medium-r-normal-serif-12-*-*-*-m-*:
Wdb.*.XmTextField.*.fontList: *-medium-r-normal-serif-12-*-*-*-m-*: Line Graphic

Tips

  • See the the X(1)man page for the syntax for setting color and font X resource values and for merging new X resources into your X resource database.
  • Use the xrdb command with the -merge option to set new X resource values in your current X resource database.
  • Use the xlsfonts command to see which fonts are available in your X server and to determine which fonts will match a given wildcard pattern (see the xlsfonts(1) man page).
  • Use the xset command with the -fp option to set, add, or remove the font path or to set font server names. The interpretation is server-dependent (see the xset(1) man page).
  • Use the unsupported demo application xfd with the -fn option to display a font. This is usually found in the /usr/contrib/bin/X11 directory (see the xfd(1) man page).
  • See the /usr/lib/X11/rgb.txt file for the color names that have been installed in the default colormap for the X server.
Line Graphic

See Also

Line Graphic

Return to Top