Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
HP Visual User Environment 3.0 User's Guide > Chapter 25 Using Resources

Setting Personal Resources for an Application

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Glossary

 » Index

Resources can be changed or specified in several ways (listed in order of preference):

Style Manager.  You can use Style Manager to change resources interactively.

This is the easiest method provided the resource is covered by Style Manager.

EditResources action.  The EditResources action lets you add, change, or delete current resources using a text editor, or make a backup file of the current resources.

xrdb client.  You can use the xrdb client to load or merge new resources into the current resources.

You can add resources individually, or from a resource file.

This method allows you to easily add resources, but you must create an intermediate resource file if you want to change or delete a resource.

NOTE: Unless you are familiar with xrdb or need some special xrdb option, use the EditResources action instead.

Command-line options.  This method is the most specific, and allows you to start an application with exactly the resources you want, without affecting other versions of that application you might be running. (Refer to “Specifying resources in a command line” for more information.)

To change resources with Style Manager

  1. Click on the Style Manager control in the front panel.

  2. Click on the Style Manager component you want to change.

  3. Make and save the changes as directed in the component's dialog box.

  4. Close the Style Manager component window.

  5. Exit Style Manager.

The Style Manager can be used to change resources if the resource in question is one that Style Manager handles. Not all features handled by Style Manager involve resources. Additionally, there is usually a larger range of resources for a particular feature than are managed with Style Manager (for instance, Fonts). However, Style Manager does handle the most popular customization features.

The writeXrdbImmediate resource determines when new values for color, fonts, and mouse double-click speed are available. The default value is True.

Value

Description

True

Changes you make using Style Manager take effect in HP VUE windows and cooperating clients immediately if possible, or the next time the client is started. This is the default value.

False

The changes take effect at the beginning of the next session.

If the value is False, you do not see the font or click-speed changes you make during your current session, even if you start new applications during the session.

To set resources using the EditResources action

  1. Double-click EditResources in the System_Admin subdirectory of the General Toolbox.

    (In HP VUE Lite, execute vueaction EditResources.)

    A list of your resources is loaded into a text file.

    The editor used is the one specified in your EDITOR enviroment variable. If you use an editor that opens its own window, you will see an extra terminal window. Ignore it or close it. It will disappear when you close the editor window.

  2. Edit the file. You can add, edit, or remove resources from the file.

  3. Store the edited file.

  4. Close the editor window.

  5. Depending on the kind of resource you set, restart the client, restart Workspace Manager, or restart your session.

The EditResources action uses the xrdb client to store the current resources in a temporary file for editing, then to load that file back into the RESOURCE_MANAGER property.

If you want to change the editor used to edit the temporary file, either:

  • Change the EDITOR environment variable. This is the preferred method.

  • Change the EditResources action.

See Also. 

To create a backup resource file

EditResoureces action. 

  1. Use the EditResources action to display your current resources in an editor window.

  2. Use the feature of your editor which allows you to save the contents under a different name.

xrdb. 

  • Issue the following command to create a file containing the current resources:

       xrdb -edit filename
    

To add resources using xrdb

Interactively . 

  1. Execute

       xrdb -merge -nocpp
    
  2. Type in resource names and values. Each resource must be on a separate line.

  3. When you've entered all the resources, press CTRL d twice.

  4. *Depending on the kind of resource you set, restart the client, restart Workspace Manager, or restart your session.

Resource file. 

  1. Create a temporary file containing your new resources.

  2. Execute

       xrdb -merge -nocpp filename
    
  3. *Depending on the kind of resource you set, restart the client, restart Workspace Manager, or restart your session.

The -merge option indicates that the resources in the file will be added to the current resources.

Example.  This example shows three resources commonly set by users. The first line indicates that scrollbars should appear on all hpterm windows. The second line sets "tty modes" to override the default terminal settings. The third line establishes four workspaces, named Home, Mail, Sheets, and Edit.

   hpterm*scrollBar:     True

   *ttyModes:            erase ^H intr ^C kill ^U start ^Q stop ^S swtch ^@

   Vuewm*workspaceList:  Home Mail Sheets Edit

See Also. 

  • “Syntax of resource specifications” has information about how to specify resources.

  • Using the X Window System has information about the xrdb client.

  • The xrdb man page explains all the options for xrdb.

To replace current resources using xrdb

  1. Create a temporary file containing the current resources:

       xrdb -edit filename
    
  2. Edit filename.

  3. Execute

       xrdb -nocpp filename
    
  4. *Depending on the kind of resource you set, restart the client, restart Workspace Manager, or restart your session.

The resource values in the file replace the existing current resources.

xrdb -nocpp filename is the same as xrdb -load -nocpp filename. -load is the default option, and directs xrdb to replace the current resources (-merge directs xrdb to add the new resources to the current ones).

Example. This example loads a backup file named myresources, overwriting the current resources.

   xrdb -nocpp myresources

See Also. 

  • Using the X Window System has information about the xrdb client.

  • The xrdb man page explains all the options.

To delete resources

  1. Use the EditResources action to remove the resource from the list.

  2. *Depending on the kind of resource you set, restart the client, restart Workspace Manager, or restart your session.

When a resource is "deleted", it is removed from the Resource_Manager property.

Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© © 1989, 1990, 1991, 1992, 1995 Hewlett-Packard Development Company, L.P.