[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

Title:DECWINDOWS 26-JAN-89 to 29-NOV-90
Notice:See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit
Moderator:STAR::VATNE
Created:Mon Oct 30 1989
Last Modified:Mon Dec 31 1990
Last Successful Update:Fri Jun 06 1997
Number of topics:3726
Total number of notes:19516

2607.0. "List of VIEWS is too long. How do you break them up" by BDYSRF::UDICK (See ya in the NOTES files) Thu Apr 12 1990 21:56

I have PCSA and Alisa running on my workstation. When I click on Views I have 
made about 30 different views. Several are the MAC files. Several are 
the PCSA files. The list too long for PC DECwindows to get them all. 

I would like to store the different Views seperate menu bar called 

MAC FILES 	PCSA FILES	SYSTEM FILES

How do you save Views under a different menu bar item from VIEWS.

Thanks,

Steve
T.RTitleUserPersonal
Name
DateLines
2607.1Undocumented hackDECWIN::KLEINFri Apr 13 1990 10:4651
>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-