Example
This example shows a rule which defines a desktop window
with the following characteristics:
-
single-clicking on the desktop window background displays an
information dialog box
-
double-clicking on the desktop window background closes the
desktop window
-
dropping one or more icons onto the desktop window puts them on
the desktop
-
opening the desktop window displays an information dialog box
-
the main Desktop icon is locked onto the desktop
The rules defining these characteristics are provided in the
following desktop rule file, which should be called
demo.dt:
%/dt/
desktop_layout
{
%$HOME$/.ixi/xdt/Main.dt @G0,0;
}
locked_on_desktop
{
%$HOME$/.ixi/xdt/Main.dt;
}
initial_actions
{
for_info 'Welcome to the demo desktop'
}
icon_rules
{
demo.dt /F
{
drop_in_action: deselect
{
for_info You have clicked on the background of the demo desktop.
}
drop_in_action: report
{
close_desktop $static_arg
}
drop_in_action: drop
{
get_out -l $dynamic_args -d $static_arg
}
}
}
See also:
Previous topic:
Defining the appearance of desktop windows
© 2003 Caldera International, Inc. All rights reserved.
SCO OpenServer Release 5.0.7 -- 11 February 2003