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

Conference azur::mcc

Title:DECmcc user notes file. Does not replace IPMT.
Notice:Use IPMT for problems. Newsletter location in note 6187
Moderator:TAEC::BEROUD
Created:Mon Aug 21 1989
Last Modified:Wed Jun 04 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:6497
Total number of notes:27359

4534.0. "Map window menu / scroll bar colors" by CSC32::W_MCGAW () Thu Feb 11 1993 16:05

    Hi,
    
    I haven't been successfull at finding this information anywhere in this
    conference so I thought I'd post it as a new note.
    
    I have a customer that is running DECmcc on a Vax and serving the
    window back to a HP750 using the PCX$SERVER process on the Vax.  His
    problem concerns the menu bar and scroll bar colors of the map.  These
    always default to the session managers window colors (window
    background) for all of the windows.  When he changes the map window
    foreground and background colors for the MCC window, the menu bar and 
    scroll bars do not change to the new color.  
    
    Is there any way through the MCC_RESOURCE.DAT file that these colors
    can be modified.  BTW, the mcc_pml.map_iconBackground: parameter in
    this file doesn't have any effect.
    
    I have observed the same behavior on the system I use where everything
    is run locally.
    
    Any help would be appreciated!
    
    Walt
T.RTitleUserPersonal
Name
DateLines
4534.1re .0BARREL::LEMMONFri Feb 12 1993 11:254
    Unfortunately there is no way to change the menus to match 
    the background. 
    
    /Jim
4534.2DECwindows team (and now customer) think you canCSC32::W_MCGAWFri Feb 12 1993 13:3411
    Hi Jim,
    
    Someone on the DECwindows team here in the CSC/CS told the customer
    that there is a widget that specifies the menubar and scroll bar
    regions background and foreground colors.  Is it that DECmcc doesn't
    address this/these widget(s) or were they incorrect in that statement? 
    Normally, when you change the window foreground and background colors,
    the menubar and scroll bars change with the window, how come DECmcc
    doesn't work that way?
    
    Walt
4534.3You can do it like this...TOOK::BMURRAYBob MurrayMon Feb 15 1993 12:3541
    
    
    Walt,
    
    There is no such thing as a widget that specifies menubar and scroll
    bar background and foreground colors. The background and foreground
    colors are attributes of the menubar and scroll bar widgets.  They are
    altered by modifying the background and foreground resources of 
    the menubar and scroll bar widgets.  
    
    Unfortunately, the way resources are read from the mcc_resource.dat
    file is done incorrectly therefore you cannot specify any other
    resources in that file that are not already there.  However, there is
    a workaround that is undocumented ;')
    
    What you want to do is create a file <my_resources.dat> or whatever
    you want to call it. Then put in this resource file the resources you
    want to modify.  For instance:
    
    *shell_class*XmRowColumn*background:	Green
    
    This resource will change the menubar (and any other Row Column widget
    which is what the menubar is) to have a background color of green. 
    This will only change the Iconic Map window's widgets because we
    specified "shell_class".  "shell_class" is the Iconic Map class name.
    It really should be something meaningful like "IMPM" but that's what
    it is for now. To change the scrollbar background color you'd do 
    something like:
    
    *shell_class*XmScrollBar*background:	Green
    
    Next, you MUST do a %setenv XENVIRONMENT <my_resources.dat>  
    to point to the resource file you just created.  You might also be able
    to put the resources in the .Xdefaults file (On Ultrix). When you have
    done this then run the IMPM .
    
    
    Hope this helps,
    
    Bob Murray
                                 
4534.4How about under VMS?CSC32::W_MCGAWWed Feb 17 1993 17:2750
Hi Bob,
    
>    There is no such thing as a widget that specifies menubar and scroll
>    bar background and foreground colors. The background and foreground
>    colors are attributes of the menubar and scroll bar widgets.  They are
>    altered by modifying the background and foreground resources of 
>    the menubar and scroll bar widgets.  
    
>    Unfortunately, the way resources are read from the mcc_resource.dat
>    file is done incorrectly therefore you cannot specify any other
>    resources in that file that are not already there.  However, there is
>    a workaround that is undocumented ;')
    
>    What you want to do is create a file <my_resources.dat> or whatever
>    you want to call it. Then put in this resource file the resources you
>    want to modify.  For instance:
    
>    *shell_class*XmRowColumn*background:	Green
    
>    This resource will change the menubar (and any other Row Column widget
>    which is what the menubar is) to have a background color of green. 
>    This will only change the Iconic Map window's widgets because we
>    specified "shell_class".  "shell_class" is the Iconic Map class name.
>    It really should be something meaningful like "IMPM" but that's what
>    it is for now. To change the scrollbar background color you'd do 
>    something like:
    
>    *shell_class*XmScrollBar*background:	Green
    
>    Next, you MUST do a %setenv XENVIRONMENT <my_resources.dat>  
>    to point to the resource file you just created.  You might also be able
>    to put the resources in the .Xdefaults file (On Ultrix). When you have
>    done this then run the IMPM .

From the above command, it looks like this <my_resources.dat> file is
created on an Ultrix / Unix node.  I guess I was a little unclear on my
problem description or maybe I don't fully understand.

The HP750 runs Unix but is merely being used as a display terminal.  DECmcc
(and the session manager I was referring) to reside on a VMS system.  Is 
there an equivalent command under VMS to substitute the 

%setenv XENVIRONMENT <my_resources.dat>

command?
    
    
Thanks!

Walt                                 
4534.5Use 'define'TOOK::BMURRAYBob MurrayThu Feb 18 1993 08:4727
    
>The HP750 runs Unix but is merely being used as a display terminal.  DECmcc
>(and the session manager I was referring) to reside on a VMS system.  Is 
>there an equivalent command under VMS to substitute the 
    
    
    Sorry, I assumed you were on Ultrix and figured you'd let me know
    otherwise ;').  The equivalent to the 'setenv' in Ultrix on VMS is
    'define'. The command:
    
     %setenv XENVIRONMENT <my_resources.dat>
    
    would be:
    
    $define XENVIRONMENT  <my_resources.dat>
    
    on VMS.
    
    
    This resource file resides on the *client* which is the system you are
    running the Iconic Map on not displaying to.  If the <my_resources.dat>
    file is not in your sys$login then make sure you define  XENVIRONEMNT
    with the file's pathname also.
    
    -Bob
    
                  
4534.6Still not working...CSC32::W_MCGAWTue Mar 02 1993 11:4111
    Hi Bob,
    
    Sorry I didn't reply sooner but...  I tried doing everything exactly as
    you pointed out and could not get the menubar and scrollbar backgrounds
    to change.  I passed this information along to the customer anyway
    (thinking maybe he'd have better luck) but he also could not make it
    work.  We ended up CLD'ing the call but if you have any other
    suggestions in the meantime, they are welcome!
    
    Walt
    CSC/CS
4534.7TOOK::BMURRAYBob MurrayTue Mar 02 1993 15:1022
    
    
    Walt,
    
    Hummm... works fine for me. I also just tried it on VMS and it worked
    too.  This is EXACTLY what I did:
    
    1) Created a file called my_resources.dat in my sys$login area.
    2) I put this line in the file:
    
     *shell_class*XmScrollBar*background:  	Green
    
    and then closed the file.
    3) I then did a $DEFINE XENVIRONMENT sys$login:my_resources.dat
    4) Then I ran V1.3 of the Iconic map.
    
    My scrollbars came up Green. If for any reason it complains about not
    knowing the color Green (it shouldn't) then pick another color like
    Red or even better put a 32 bit hexadecimal value in there for the color.
    
    
    -Bob                   
4534.8are there any other widgets?CSC32::W_MCGAWWed Mar 31 1993 12:5412
    Hi,
    
    The key to this was using the BMS V1.3 iconic map interface.  Once we
    did that, it worked fine.  The customer is still having a problem with
    the colors but now he wants to change the character colors of the menu
    bar and it's pulldown boxes.  I think he just wants to find out what
    other widgets are available outside of DECmcc (MCC_RESOURCE.DAT) that
    he can modify.  Does anyone have a list of these so I can send it to
    him and hopefully satisfy him?
    
    Thanks,
    Walt
4534.9VERNA::V_GILBERTThu Apr 01 1993 10:029
Walt,

This can be done with any Motif widget in a similar fashion.  We do not have
a list of all widgets, but Motif books might give you a list.

Some include XmText, XmScrolledWindow, XmBulletinBoard, XmMainWindow,
XmMessageBox, XmForm, XmFileSelectinBox.

Verna