Example
This example shows a rule that defines a directory with the
following characteristics:
-
single-clicking on the directory window background displays
an information dialog box
-
double-clicking on the directory window background closes the
window and opens the parent directory window
-
dropping one or more icons onto the directory window copies them
into the directory
-
closing the directory window displays a dialog box
The rules defining these characteristics are provided below:
icon_rules
{
TestDir /D
{
drop_in_action: deselect
{
for_info You have clicked on the TestDir directory background.
}
drop_in_action: report
{
display_directory $static_arg `(dirname $static_arg)
}
drop_in_action: drop
{
copy_into $static_arg $dynamic_args
}
}
}
You would also place the following rules in
TestDir/.xdtdir/ll_TT (where, by default,
ll_TT is en_US):
final_actions
{
for_info Closing the TestDir directory.
}
See also:
Previous topic:
Defining the behavior of directory windows
© 2005 The SCO Group, Inc. All rights reserved.
SCO OpenServer Release 6.0.0 -- 26 May 2005