–WG See the –geometry option.
–WH See the –help option.
–Wi, and +Wi
These options control how an application will come up, open or closed (iconified).
Short:
Type: Boolean
Resource: Window.Iconic
Default: +Wi
Examples:
cmdtool +Wi
Makes cmdtool come up open.
cmdtool -Wi
Makes cmdtool come up closed.
–WI (uppercase i)
See the –icon_image option.
–Wl (lowercase L)
See the –label option.
–WL See the –icon_label option.
–Wp See the –position option.
–WP See the –icon_position option.
–Wr See the –display option.
–Ws See the –size option.
–Wt See the –font option.
–WT See the –icon_font option.
–Wx See the –scale option.
Command-line Arguments
and XView Resources
Command-line Arguments and XView Resources 249
–xrm This option allows the user to set resources that don’t have command-line equiva-
lents. This is similar to the –default option, but it takes only one argument, a
string in the form of resource-name:value.
Type: String
Resource: Given in the string
Default: None
Example:
cmdtool -xrm OpenWindows.ScrollbarPlacement:right
6.2 Additional Resources
The .Xdefaults file stores resource settings. We recommend that you use the command-line
arguments in order to change display characteristics rather than changing the .Xdefaults file.
Changing the resources in .Xdefaults modifies the behavior of the user’s session. Novice
users should not casually modify these settings.
Before attempting to edit the .Xdefaults file, please read the appropriate sections of the Xlib
Programming Manual on the file format and the specific properties you intend to change.
Note that resources documented in this section do not have command-line arguments. It is
possible to change these properties without altering the .Xdefaults file. The command-line
arguments -xrm and -defaults provide instructions on how to specify values for any
property. The resources that have command-line arguments are documented in the previous
section.
Introduction.Resources (Props)
This is an example of the format for the resources described in this section. This field
contains a brief description of the resource. If the resource can be modified by the
OpenWindows Property Sheet, the resource name is followed by “(Props)”.
Values: Val1, Val2 (Default). This field contains the possible values for the
resource. If the resource may contain any value, the default(s) are
provided. Defaults are shown enclosed in parentheses following the
valid values.
alarm.visible
When ringing the bell in an XView program, flash the window as well to warn the user.
Values: True, False (True)
keyboard.cancel
Values: integer
250 XView Reference Manual
keyboard.defaultAction
Values: integer
keyboard.inputFocusHelp
Values: integer
keyboard.nextElement
Values: integer
keyboard.deleteChar
Specifies the delete character. This resource applies to text windows only and not to
panel text items. This would work in either cmdtool or textedit or the compose
window of mailtool.
Values: C (177 = octal for Delete)
Where C is some character either typed into an editor or specified
with an octal equivalent.
keyboard.deleteLine
Specifies the delete line character. This resource applies to text windows only and not
to panel text items. This would work in either cmdtool or textedit or the com-
pose window of mailtool.
Values: C
Where C is some character either typed into an editor or specified
with an octal equivalent.
keyboard.deleteWord
Specifies the delete word character. This resource applies to text windows only and
not to panel text items. This would work in either cmdtool or textedit or the
compose window of mailtool.
Values: C (27 = octal for ˆW)
Where C is some character either typed into an editor or specified
with an octal equivalent.
mouse.modifier.button2
When using a mouse with less than three buttons, this resource gets an equivalent map-
ping for the second button which is the ADJUST button on a three button mouse. For
more information on keysyms, see the xmodmap reference manual page in the Xlib
documentation, or the include file $OPENWINHOME/include/X11/Xkeymap.h.
Values: Shift, Ctrl, any valid modifier keysym (Shift)
mouse.modifier.button3
When using a mouse with less than three buttons, this resource gets an equivalent map-
ping for the third button which is the MENU button on a three button mouse. For more
information on keysyms, see the xmodmap reference manual page, Xlib documenta-
tion, and the include file $OPENWINHOME/include/X11/Xkeymap.h.
Values: Shift, Ctrl, any valid modifier keysym (Ctrl)
Command-line Arguments
and XView Resources
Command-line Arguments and XView Resources 251
mouse.multiclick.space
Specifies the maximum number of pixels between successive mouse clicks to still have
the clicks considered as a multi-click event.
Values: N (4)
Where N is an integer between 2 and 500.
notice.beepCount
Ringing the bell can consist of either an audible beep and/or a visual flash.
Values: N (1)
Where N is an integer to specify how many times to ring the bell
when a notice appears.
notice.jumpCursor
Values: True, False
OpenWindows.3DLook.Monochrome
Values: True, False (True on all monochrome screens)
OpenWindows.3DLook.Color
When False, do not use the 3-D look on a color or grayscale screen.
Values: True, False (True on all but monochrome screens)
OpenWindows.beep (Props)
When the value is notices, the audible bell will ring only when a notice pops up. When
the value is never, the audible bell will never ring. When the value is always, the
audible bell will always ring when the bell function is called by a program.
Values: never, notices, always (always)
OpenWindows.BoldFont
Sets the font used by labels of a panel text item. If -font is specified on the command
line, then it will override the font set by OpenWindows.BoldFont. To find out
what fonts are available, use the xlsfonts command.
Values: font name
OpenWindows.dragRightDistance(Props)
Used by menus to determine when a pullright submenu would display when dragging
over the menu item near a submenu.
Values: N (100)
N is an integer greater than 0. A reasonable value might start at 20
and go to 200.
252 XView Reference Manual
OpenWindows.GotoMenu.UserDirs
User’s directories in Goto Menu. <string-list> is a newline separated list of full-path
directory names. Since the users home directory is always present it should not be in
this list.
Values: <string-list>
Default: <null-string>
Example:
OpenWindows.GotoMenu.UserDirs: /home/me/src0usr/openwin
OpenWindows.GotoMenu.RecentCount
Number of Recently Visited Directories Shown: where <count> is an non-negative
integer which is the number of the recently visited directories shown in the Goto
Menu. The default is 8, the maximum is 15.
Values: <count>
Default: <null-string>
Example:
OpenWindows.GotoMenu.RecentCount: 10
OpenWindows.KeyboardCommand.*
All of the OpenWindows.KeyboardCommand resource mappings may be modified
by users, or by specifying one of three values for OpenWindows.KeyboardCom-
mands: Sunview1 (which is the default), Basic, or Full. See the description for
OpenWindows.KeyboardCommands and Chapter 6, Handling Input, in the XView
Programming Manual, for more information.
OpenWindows.KeyboardCommand.Adjust
This mapping is loaded if KeyboardCommands is set to Full. This is a keyboard
Core Functions resource.
Values: Insert+Alt
OpenWindows.KeyboardCommand.Again
This is a keyboard Core Functions resource.
Values: a+Meta, a+Ctrl+Meta, L2
OpenWindows.KeyboardCommand.Copy
This is keyboard Core Functions resource.
Values: u+Meta, L4
OpenWindows.KeyboardCommand.CopyThenPaste
This is keyboard Core Functions resource. This mapping is always loaded.
Values: p+Meta
Command-line Arguments
and XView Resources
Command-line Arguments and XView Resources 253

Get Volume 7B: XView Reference Manual now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.