[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

1192.0. "Keeping private colormap/ Backing store" by PRIMES::UEBERSAX (Kris, Primes DWT, Landover, Md.) Fri Jul 28 1989 09:29

    I would like to help a customer who is developing an application using 
    VAX/VMS, VAX Ada, and DECwindows on a 4-plane VS2000.
    
    The application requires colormap manipulation so she is using a
    private colormap.
    
    She is having a problem with debugging.  Her application window is
    created with the correct colormap but when she switches focus to the 
    TE running the debugger her colormap gets replaced by the default.
    
    Is there a window manager hint or something she can set to keep the
    private map installed?
    
    We are also interested in what ballpark timeframe DECwindows will
    support backing store.
    
    Thanks.

T.RTitleUserPersonal
Name
DateLines
1192.1Basic info on colors...GSRC::WESTI'm just visiting this planet.Fri Jul 28 1989 11:1717
  All of our current workstations, sans the VS 3520/40, have only one hardware
colormap.  X defines that there will only be one active window at a time.  When
a window becomes the "active" window, such as the case with input focus, the
server will load that window's color map.

  Most of the time windows will share colors and the same color map so switching
from one window to another causes no problems.  Since there was a private color
map being used it will be "swapped out" when another colormap is needed.  This
is expected behavior.  The colors will go "technicolor" on you since the color
index does not change but the value at that index is now different.

  Hope this helps... 8^)

					-=> Jim <=-


1192.2Use a terminal for debuggingLBDUCK::SCHOELLERWho&#039;s on first?Fri Jul 28 1989 11:539
Since .1 did not give any suggestions about how to work around the problem...

The best bet when debugging DECwindows applications is to log in from a terminal
(or across the net from a another workstation).  That way, you can keep focus
in your application and can reduce the chances of piling up events in the
queue while sitting at a breakpoint or single stepping.

Dick

1192.3An ideaDECWIN::FISHERBurns Fisher 381-1466, ZKO3-4/W23Fri Jul 28 1989 14:4214
Here is a method to debug from the same workstation without having the
colormaps switch one you (this means, of course, that the application window
will have the wrong colors):

During debug only,
Don't do SetWindowColormap on the application window.  Then the window
manager will never know to install a different colormap.  To allow
you to have the winmgr install the cmap when you want it installed, create
a small window off in the corner somewhere on which you have done SetWindowColormap.
If you click in that window, the private colormap will be installed.

A more expensive way is to get a firefox which lets you have multiple
colormaps installed!

1192.4Sorry, don't understand.PRIMES::UEBERSAXKris, Primes DWT, Landover, Md.Sat Jul 29 1989 22:5821
    
    re: .-1
    
    Hmmm.
    
    > Don't do SetWindowColormap on the application window.  Then the window
    >manager will never know to install a different colormap.  
    
    Okay.  Now the application and DBG TE window have the default cmap.
    
    >To allow you to have the winmgr install the cmap when you want it 
    >installed, create a small window off in the corner somewhere on which 
    >you have done SetWindowColormap.  If you click in that window, the 
    >private colormap will be installed.
    
    But now the small window has focus and when I click back to the TE
    won't the default cmap get reinstalled just as it did when switching
    focus from the application window?
    
    

1192.5backing store?PRIMES::UEBERSAXKris, Primes DWT, Landover, Md.Tue Aug 01 1989 08:044
    
    Is there a ballpark timeframe for backing store?  (Not asking for a
    commitment.)

1192.6Backing store and save-undersFLUME::dikeTue Aug 01 1989 10:134
The MIT servers and their derivatives (i.e. PMAX servers) have it
now.
				Jeff

1192.7what do you mean?VAOU02::JBLAIRparty on dudes!Thu Aug 03 1989 21:0013
    re .6
    
    Can you provide further explaination? 
    
    ie. PMAX but not PVAX?
        or is it Ultrix but not VAX versions of the server?
        Ultrix version 3.0 or 3.1?
        will the VMS server have it soon?
        
    
    thanks
    jeanne

1192.8FLUME::dikeFri Aug 04 1989 09:4622
The VAX servers (VMS and Ultrix) are compiled from the same sources,
hence they are called the common servers.  According to my
understanding, these servers are different enough from the MIT servers
that integrating MIT changes into them is a lot of work.  MIT, in
R3 (I think), implemented backing store and save-unders, but those
features have not yet been implemented in the common server.

The PMAX servers, on the other hand, are MIT servers with an optimized
ddx.  So, when MIT implemented backing store and save unders, it was
relatively easy to integrate them.  It may be that they were already
in the sources that the PMAX project started with.  I'm not sure
what the relative timing of R3 and PMAX were.

The upshot of all this is that it is a lot easier to integrate MIT
changes into the PMAX servers than the common servers.

This is all based on my knowledge of UWS2.0.  Since UWS has moved
to the West coast, this could have changed.  I'm sure people will
be happy to correct me if any of the above is wrong.
				Jeff


1192.9switch input focus w/out deinstall. colormapCSCMA::HODGEWed Aug 09 1989 18:0013
I was able to get around deinstalling the colormap from an application
window when I switched input focus to another window by using the autofocus
program (described in note 418).  With autofocus running the input focus
can be changed by moving the mouse.  Clicking the mouse is still required
to install a colormap.  I used this hack for a GKS program that installs
a private colormap in the GKS window and takes input from the DECterm 
window.  After the GKS window opens, I have to click on that window to 
install the colormap.  After the colormap is installed, I can switch input
focus back to the DECterm window by moving the mouse.  

Frannie