Re: XForms: separate colormap for canvas - problems

Michal Szymanski (msz@bulge.astrouw.edu.pl)
Mon, 24 Nov 1997 11:08:54 +0100 (MET)

To subscribers of the xforms list from msz@bulge.astrouw.edu.pl (Michal Szymanski) :

Hi everybody,

>
> > Here is the code for the relevant event handlers. They are installed on the
> > canvas which has the private colormap. The program DID work, both on a
> > single colormap linux box and a multiple colormap SGI. The QuitButton
> > business is a kludge to get at the top-level window.
>
> It works as you described in the elided! Great detective work! My
> hat is off to you for finding that one.
>

Yes, indeed - great work. Thanks very much to all who replied to my
original posting.

> I still don't think it's an XForms bug, per se, but a tvtwm bug. I'm
> running R5 tvtwm patchlevel 10. Perhaps it's been fixed since then.
> I've looked around for an R6 version but haven't seen one. If anyone
> knows of a later one, please point me at it.

Well, I think it might be XForms-related thing. I tried Solaris' "olvm"
- same behavior. Normally I use "twm" (Solaris 2.5.1 and Linux XFree86
3.3).

Playing with my program I have also noted following interesting things:

1. When I associate the private colormap not only with my image canvas
window but also with main form window (through XSetWindowColormap), the
problem disappears - the colormap gets (un)installed without any
fiddling with WM properties. Actually this is (for me) even better
solution, as I prefer to see right colors in my image canvas also when
the mouse is anywhere in the main form of my program.

2. This is something I do not quite understand: In the original attempt
to install the private colormap only for image canvas (and not for main
form window), I was very surprised to find that the same colormap gets
installed for two other objects on my main form: another canvas
displaying a small magnified area of my image (around the mouse in the
main image canvas) and in a small pixmap with the whole (zoomed) image
and a rectangle showing which part of the image is currently displayed
in main canvas. Needless to say that I did not do anything to change
the colormap for anything else but the main image canvas. Strange!

regards, Michal.

****************************************************************************
Michal Szymanski Internet: msz@sirius.astrouw.edu.pl
Warsaw University Observatory Bitnet: msz@plwauw61.bitnet
Al. Ujazdowskie 4 Voice: 48-22-6294011 ext 23
00-478 Warszawa, POLAND FAX: 48-22-6294967
****************************************************************************
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
Xforms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/