HP Visualize J210XC IRIX to HP-UX Migration Guide - Page 124

CONTROL NewControl, CONTAINER_NAME, CONTAINER_TYPE, NewControlBitmap, PUSH_ACTION,

Page 124 highlights

The Desktop Environment 2. Place the mouse pointer over the icon, and press the right mouse button to display the subpanel menu. 3. Select "Copy to Main Panel." To add an object by editing the dtwm.fp file: 1. Copy dtwm.fp from /usr/dt/app-config/types/C to /etc/dt/appconfig/types/C. 2. Add the new control definition using the format: CONTROL NewControl { TYPE icon CONTAINER_NAME Top CONTAINER_TYPE BOX ICON NewControlBitmap PUSH_ACTION NewControlExecutable } Note that all control definitions have the general syntax: KEYWORD Value A basic control definition has 6 items: CONTROL name The definition name. This is the only part of the definition that is allowed outside of the curly braces. TYPE The type of control. Several types exist, although the most useful for the front panel are blank and icon. A blank can be used as a space holder, while the icon can start an action, application or be a drop zone. ICON The bitmap display on the front panel. CONTAINER_NAME The name of the container that holds the control, which must correspond to the name of an actual container listed in dtwm.fp. CONTAINER_TYPE The type of container that holds the control. This can be BOX, SWITCH, or SUBPANEL, but it must agree with the type of the container name. PUSH_ACTION: This is what happens when the control button is pushed. PUSH_ACTION is just one of several types of actions. For more information, see the dtwm(user cmd) man page. To remove an object from the front control panel, type a pound sign (#) in the leftmost column of the CONTROL definition line. This action turns that control statement into a comment line. Adding Objects to Slideup Subpanels Subpanels are defined in dtwm.fp after the front panel and front panel control definitions. To associate a subpanel with a front panel control button, the front panel control name is listed as the container name in the subpanel definition. To add a slideup subpanel to the front panel: 1. Copy the file /usr/dt/appconfig/typers/C/dtwm.fp to /etc/dt/app-config/types/C/dtwm.fp. 119

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125

The Desktop Environment
119
2.
Place the mouse pointer over the icon, and press the right mouse button to display the subpanel menu.
3.
Select ²Copy to Main Panel.³
To add an object by editing the
dtwm.fp
file:
1.
Copy
dtwm.fp
from
/usr/dt/app-config/types/C
to
/etc/dt/appconfig/types/C
.
2.
Add the new control definition using the format:
CONTROL NewControl
{
TYPE
icon
CONTAINER_NAME
Top
CONTAINER_TYPE
BOX
ICON
NewControlBitmap
PUSH_ACTION
NewControlExecutable
}
Note that all control definitions have the general syntax:
KEYWORD
Value
A basic control definition has 6 items:
CONTROL name
The definition name. This is the only part of the definition that is
allowed outside of the curly braces.
TYPE
The type of control. Several types exist, although the most useful for the
front panel are
blank
and
icon
. A
blank
can be used as a space holder,
while the icon can start an action, application or be a drop zone.
ICON
The bitmap display on the front panel.
CONTAINER_NAME
The name of the container that holds the control, which must correspond
to the name of an actual container listed in
dtwm.fp
.
CONTAINER_TYPE
The type of container that holds the control. This can be
BOX,
SWITCH,
or
SUBPANEL
,
but it must agree with the type of the
container name.
PUSH_ACTION
:
This is what happens when the control button is pushed.
PUSH_ACTION
is just one of several types of actions. For more
information, see the
dtwm(user cmd) man
page.
To remove an object from the front control panel, type a pound sign (
#
) in the leftmost column of the
CONTROL
definition line. This action turns that control statement into a comment line.
Adding Objects to Slideup Subpanels
Subpanels are defined in
dtwm.fp
after the front panel and front panel control definitions. To associate a
subpanel with a front panel control button, the front panel control name is listed as the container name in
the subpanel definition.
To add a slideup subpanel to the front panel:
1.
Copy the file
/usr/dt/appconfig/typers/C/dtwm.fp
to
/etc/dt/app-config/types/C/dtwm.fp
.