home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-387-Vol-3of3.iso
/
m
/
msh_ut11.zip
/
MYDEFS.ZIP
/
MENU.MSH
< prev
next >
Wrap
Text File
|
1992-05-09
|
6KB
|
191 lines
| file MENU.MSH where menus are defined
|
(normal_att current_att current_selected_att false true menu.install)
permanent_menu!
(normal_att current_att current_selected_att "hv" true menu.install)
permanent_bordered_menu!
("0;47;30" "1;44;37" "1;41;33" "hv" false menu.install)
temp_bordered_menu!
|
((quit)(cmdlist prog_dir"cmdlst"& dup unlink write quit)
"just %quit%
or also %save% your cmd stack?"
() "-1" "-1" temp_bordered_menu)qmenu!
|
| ("your turn""please create your own menu here"message)yourmenu!
|
(floppy_drives fixed_drives &
0 i!
(dup length i >)
(i 1 + i! dup i i substring ":\""& "(\""swap& "cwd!refresh)"& # swap)
while
0 i!"" swap
(dup length i >)
(i 1 + i! dup i i substring ":%"&" "&" %"swap& 3 roll swap& swap)
while
drop
" Goto "swap&
() linescols i 4 * 8+ - swap 2/ menu_line+
permanent_bordered_menu drive_menu_no!)
drive_menu!
|
(drive_menu_no window.activate)dmenu!
|
((ascii)(ls_MU)(dosmenu)(panel_stats)(prog_dir "cmdlst"&read cmdlist!)
(toggle_menu)(true capt_screen)
(selected_fit_other)(reconfig)(swap_menu)
" %ascii table%
CtrlL %disk stats%
ShiftF7 %DOS commands%
%panels stats%
%read old command stack%
ShiftF9 %1/2 line top menu%
ShiftF5 %capture screen%
ShiftF2 %space on other panel%
F9 %change configuration%
ShiftF10 %swap menu%" (main_menu) 20 menu_line 1+ temp_bordered_menu)imenu!
|
(("speedisk"exec)
("fdformat a: -F1.2 -X:2 -Y:3 -K -u"exec)
("fdformat a: -F720 -K -u"exec)
("fdformat b: -F1.44 -X:2 -Y:3 -K -u"exec)
("fdformat b: -F720 -K -u"exec)
("fdformat a: -q"exec)
("fdformat b: -q"exec)
"%Speedisk%
%format a: (1.2 M)%
%format a: (720 K)%
%format b: (1.4 M)%
%format b: (720 K)%
%format a: (QUICK)%
%format b: (QUICK)%
" (main_menu) 15 menu_line 1+ temp_bordered_menu)dosmenu!
|
|
((select_on_off)(copy_files)(move_files)(delete_files)(whereis)(find_string)
("What arj file do you want to create or update?"
50 input dup | only when notempty
(
tmp_dir"tmp.$$$"& tmp_filename!
(nl&tmp_filename write)foreachselected | Write List of files
"arj a " swap&" !"&tmp_filename&exec
"del "tmp_filename&exec | Del tmp-file
)if)
("What arj file do you want to create or update?"
50 input dup | only when notempty
(
tmp_dir"tmp.$$$"& tmp_filename!
(nl&tmp_filename write)foreachselected | Write List of files
"arj m " swap&" !"&tmp_filename&exec
"del "tmp_filename&exec | Del tmp-file
)if)
(editor exec)(file_stats)("copy "current.name &" prn"& exec)
" F2 %select%
F5 %copy% selected
F6 %move% selected
F8 %delete% selected
%find a file%
%find a string%
%arj% selected
%arj% selected (move)
%edit new%
CtrlF9 %specs% of current file
%print%" (main_menu) 1 menu_line 1+ temp_bordered_menu)fmenu!
|
((browse_current)(editor current.name & exec)
(editor selected_list deselect & exec)(od)(wc)
(browser selected_list deselect & (exec) with_nomagic)
" F3 %view current%
F4 %edit current%
%edit selected%
ShiftF3 %hex dump%
%word count selected%
CtrlF3 %browse selected%" (main_menu) 8 menu_line 1+ temp_bordered_menu)vmenu!
|
((expand_panel)(trim_panel)(hide_all)(wide_narrow)(top_bottom)(swap_panels)
(refresh)("N" panel.sort!)("E" panel.sort!)("S" panel.sort!)("T" panel.sort!)
" Alt1 %Expand% panel
Alt2 %Trim% panel
CrtlO %hide% panels and menus
(toggle)
AltW %Wide/narrow toggle%
%top/bottom toggle%
CtrlU %swap% panels
CtrlR %Refresh% panel
Sort Panel by
AltN %Name%
AltE %Extension%
AltS %Size%
AltT %Time%
" (main_menu) 35 menu_line 1+ temp_bordered_menu)pmenu!
|
| ┌───────────┐
| │ Help menu │
| └───────────┘
|
("help.msh"loaddefs help_menu)hmenu!
|
| ┌────────────┐
| │ Magic menu │
| └────────────┘
|
| show state of magic switch -- if activated call "swapping type" menu
|
("magic_menu_no"isdefined(magic_menu_no window.uninstall)if
(swap_menu)magic dup (dup 1 1 substring "*"=
("*"cutfirst swap drop ("% D%")("% %")ifelse)
(drop"%XD%")ifelse)(drop"%X %")ifelse
() 78 0 permanent_menu magic_menu_no!)
magic_menu!
| ┌───────────────┐
| │ swapping menu │
| └───────────────┘
|
((false magic!magic_menu)(tmp_dir magic!magic_menu)
("*"tmp_dir&magic!magic_menu)("*"magic!magic_menu)
" What type of swapping do you want:
%XMS% (default)
%to directory "tmp_dir&"% if no XMS
%to directory "&tmp_dir&"% always
%no swapping%"&
() 30 4 temp_bordered_menu)swap_menu!
|
| toggle between one-line and two-line main menu
|
( menu_line 0=(1 menu_line!)(0 menu_line!)ifelse
(panel.startrc swap menu_line 0= ("-1")(1)ifelse + swap panel.startrc!
panel.rc swap menu_line 0= (1)("-1")ifelse + swap panel.rc!
)loop_panels
main_menu_no window.uninstall
show_menu clock
)toggle_menu!
|
( menu_line 0=
| ┌───────────────────────┐
| │ Main menu -- 1 line │
| └───────────────────────┘
|
((hmenu)(fmenu)(vmenu)(imenu)(CtrlW)(pmenu)(personal_menu)(qmenu)
"F1%Help% %Files% %View/edit% %mIsc% %Whereto% %Panel% %Special% F10%Quit% "
() 0 0 permanent_menu main_menu_no!
0 menu_line!)
|
| ┌───────────────────────┐
| │ Main menu -- 2 lines │
| └───────────────────────┘
|
((hmenu)(select_on_off)(browse_current)(editor current.name & exec)
(copy_files)(move_files)(yourmenu)(delete_files)(reconfig)(qmenu)
(ascii)(selected_fit_other)(od)(toggle_menu)
(true capt_screen)(ls_hide)(dosmenu)(delta) (whereto)(swap_menu)
"F1 %Help% F2 %sel% F3 %view% F4 %edit% F5 %copy% F6 %mv% F7 %menu% F8 %del% F9 %cfg% F10 %Quit%
Shft %asci% %fito% %hex% %½ menu% %screen% %ls-hide% %DOS% %delta% %Whereto% %magic%"
() 0 0 permanent_menu main_menu_no!
1 menu_line!)
ifelse
)show_menu!
|
(main_menu_no window.activate)main_menu!
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||