[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

2418.0. "Colors and multiple displays??" by KAOU35::DLEROUX () Fri Mar 09 1990 08:40

    
    I am writing an application which uses multiple displays.  I thought I
    was all finished ( 90% ) when suddenly I realized that the windows on
    the displays take on the default colors of the first display.  
    I thought that when a shell widget is created on another display it
    would take on the default colors of that display...but that doesn't
    seem to be the case.
    
    Is there any way around this?
    
    It is really annoying when the first display is a workstation with
    grayscales and all the other ones are green.
    
    Dan
    
T.RTitleUserPersonal
Name
DateLines
2418.1Informed speculationDECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Fri Mar 09 1990 13:409
There is no magic.  The colors an appliations uses come from a resource that
(usually) the session manager puts on the root window of the display it uses.
The application gets that value from the resource data base.  I think it is
actually *background or some such.  I assume the application is only merging
the resources from its "main" display.  It never sees the *background value from
the other display.  Even if it does, they both have the same name, and one or
the other value will "win".  Not both.

Burns
2418.2Not a good topicDECWIN::KLEINFri Mar 09 1990 13:5915
I think this is a toolkit bug.  Each display structure on the client side
has room for its own resource database.  I think that the toolkit is just
trying to avoid reloading the resource database for multiple displays,
without realizing that the databases might indeed be DIFFERENT.

If you're running DECwindows V2.0, it is even worse.  I can't get multiple
display applications to run AT ALL.  See QAR V5, #1586 if you want to be
depressed.

But then in DECwindows V2.1 it will work (like V1?) again.  Which still
does not seem to be the right way.

groan

-steve-
2418.3Xlib believe there is only one resource dbOPHION::MIKEYMike YangFri Mar 09 1990 17:472
    The Xlib routines believe that there is only one resource database, and
    that is on screen 0.
2418.4Motif has some interesting capabilities...FUEL::grahamHow are we doing?Fri Mar 09 1990 18:5526
>The Xlib routines believe that there is only one resource database

I have been led to believe that mwm can do the following: no?

You can run a copy of mwm at each screen and give each a different
resource name (using the -name command line option). Each copy of mwm 
can then pick up a personalized set of resources.

For example:

    % mwm -name mwm0 -display screen:0.0      # mwm on screen zero
    % mwm -name mwm1 -display screen:0.1      # mwm on screen one

  Your resources might look something like this:

    Mwm*keyboardFocusPolicy:   explicit      # class name applies to both

    mwm0*background:           maroon

    mwm1*background:           white

    etc

Kris..

2418.5So ...KAOU04::DLEROUXSun Mar 11 1990 17:1518
re. 2
  > ... If you're running DECwindows V2.0, ... I can't get multiple display 
  > applications to run at all. 

Are you sure?  My application was initially developped under V2.0 and worked
fine( except for the colors ). 

I agree with you when you say that this does not seem to be the right way.
It would seem logical for a window opening on another display to take on the 
display's default colors, wouldn't it?  

I guess this means that there is no way of getting the default colors for every 
screen.  I guess everybody will get a black & white version of my application.

Thanks anyways,

Dan

2418.6Its been fixed ...KAOU35::DLEROUXFri Mar 16 1990 08:447
    
    We are now running the 5.4-EFT and the "bug" or "missing feature" seems
    to have been fixed since when I open a new display the window on that
    display takes on its default colors.
    
    Dan