[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

2965.0. "Help with DECW$SM_GENERAL.DAT "syntax"" by CSC32::D_COHN (Semiprodigious) Wed Jun 20 1990 13:04

(Kelp! Kelp!...  Glub, Glub...)

	I have a "customer" need for customizing the Session Mgr.  They are 
setting up their work stations in their trading pits "with a minimum" set of 
menu options (ala "captive" sessions) and have run into the "snag" with the 
"Customize" and "Print Screen" menu buttons that they want to remove from the 
pulldowns.  I have found "almost" all of the information I needed to get them 
where they want to go with Note #2350 but when I added the following to my 
own DECW$SM_GENERAL.DAT to test it out - it didn't work!

	sm.PrintMenu: PrintPortionButton
	sm.num_PrintMenu: 1

	First, is the syntax correct?  Second, would the "Customize" menu be 
identified as "sm.CustomizeMenu"?

Thanks,

Dennis
T.RTitleUserPersonal
Name
DateLines
2965.1info on customizing session manager menusDEVO::BROUILLETTEThu Jun 21 1990 10:4736
    
    Only the applications menu on the Session Manager can be customized in
    a supported way.
    
    You can use the info in 2350 to make items on the Session Manager
    pulldown menus insensitive in a non-supported way.  That will keep
    the user's from being able to access the functions.
    
    I don't think you can change the CONTENTS of the menus via a resource
    file since all the menu items are created in UIL.   But I have never
    tried it.   I believe that is why your resources are not working.   The
    Session Manager does not look at the resource file or any resources
    called num_PrintMenu when it builds the print and customize menus.
    
    So, you can set insensitive on the menu items that you do not want the
    users to access.   They will still be in the menu, but the user will
    not be able to choose them.   That is what the example in 2350 does for
    you.  You could try making the whole pulldown menu insensitive.  I am 
    not sure if this works.
    
    In case you want to try that, the resource names for the pulldown menus 
    are:
    
    	PrintPulldown
    	CustomizePulldown
    
    So, to make the whole menu inaccessible try adding the following lines
    to the resource file
    
    *PrintPulldown.sensitive:	false
    *CustomizePulldown.sensitive: false
    
    Addressing this need to customize the Session Manager menus was a high
    priority for the next release of DECwindows.  Things should be A LOT 
    easier to customize in the next release...