| >How do you save Views under a different menu bar item from VIEWS.
Its a hack. It only works in DECwindows V2 (and later). Take a deep breath.
(1) You should give up the use of the Views menu altogether. It will
always contain all the saved views, no matter what else you do. You
can simply remove it from your menubar if you want to.
(2) Save views just as you always have. If you inherit some saved views
from a public profile file, that's fine, too.
(3) Go into the Customize/VerbsdAndMenus dialog box. Enter a verb
with EXACTLY the same name as any of your saved views. The match
is case-sensitive, too, so be careful. Do this by:
(1) entering the *exact* verb name into the VerbNames list,
(2) Make a DCL command of "!" (a single exclaimation point),
(3) Define one or more menus (if not already defined), and
(4) Add your new verb to a menu.
Do this for all the saved views that you're interested in organizing.
(4) Go into the Menubar dialog box, and add your new menus to the menubar.
You probably want to save the new menubar in your startup view
(Customize/SaveStartupView). Make sure everything else is set up
just right before you save your new startup view.
Alternatively, you could construct one or more new menubars each containing
some subset of the menus. Define *other* saved views containing just the
different MenuBar settings. *These* saved views (with names like "PC-Views"),
could then be put in the Control menu (so they will always be available).
Selecting one of these "verbs" from the Control menu would cause the
desired menu(s) to suddenly appear in the menubar.
This would give you a two-level hierarchy of saved views.
(5) Now, when you pick this new verb from whichever menu(s) it appears in,
you will restore the corresponding saved view. You can even put saved
view names into popup menus, etc. This will be just like picking it from
the Views menu. The one difference is that it will (momentarily) use
one of your task subprocesses, so it could fail if you're not able to
start another task. This really needs to be fixed in FileView, but
you'd have to talk to the keepers of the FileView code to get this
fixed.
(6) If you put a *real* DCL command in the verb definition, then both the
saved view *and* the DCL command will be executed. (View first, then
command.) If you hold the shift key down while you pick the verb, and
new window will be created for the new view, and the DCL command will
be executed in the context of the new window.
-steve-
|