You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
847 B
45 lines
847 B
19 years ago
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||
|
%
|
||
|
% Panel help entry.
|
||
|
%
|
||
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||
|
|
||
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||
|
% Show help window.
|
||
|
%
|
||
|
% ( ) => ( )
|
||
|
%
|
||
|
/panel.help {
|
||
|
help.context "opt" eq {
|
||
|
findbootoption
|
||
|
help.mapcontext
|
||
|
dup help.findpage
|
||
|
"" eq { pop } { help.setcontext } ifelse
|
||
|
} if
|
||
|
show_help
|
||
|
} def
|
||
|
|
||
|
|
||
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||
|
% Return width of help entry.
|
||
|
%
|
||
|
% ( ) => ( width )
|
||
|
%
|
||
|
/panel.help.width {
|
||
|
txt_help strsize pop
|
||
|
} def
|
||
|
|
||
|
|
||
|
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||
|
% Redraw panel entry.
|
||
|
%
|
||
|
% ( panel ) => ( )
|
||
|
%
|
||
|
/panel.help.update {
|
||
|
panel.text.moveto
|
||
|
|
||
|
txt_help show
|
||
|
} def
|
||
|
|
||
|
|