LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Virgilio, Vincent (Vincent.Virgilio_at_[hidden])
Date: 2003-04-24 13:29:06


Hello,

Apologies up front, since this is only peripherally related to LAM.

I have very much enjoyed using xmtv. The default colormap, though, is
distracting for my purposes. I would like to force xmtv to use grayscale.
So, being ignorant of X, I inflicted the following on xmtv.c.

        #if 1
                XrmValue source, dest;
                Visual v;

                source.size = strlen("StaticGray") + 1;
                source.addr = "StaticGray";
                dest.size = sizeof v;
                dest.addr = &v;
                XtConvertAndStore(w2, XtRString, &source, XtRVisual, &dest);
        #endif

                XtVaSetValues(w2,
                        XmNtopAttachment, XmATTACH_WIDGET,
                        XmNtopWidget, w1,
                        XmNbottomAttachment, XmATTACH_FORM,
                        XmNleftAttachment, XmATTACH_FORM,
                        XmNrightAttachment, XmATTACH_FORM,
        #if 1
                        XtNvisual, &v,
        #endif
                        NULL);

Of course it doesn't do near what I hoped for. After executing xmtv, I get
the following diagnostic on stdout:

        Warning: Cannot find Visual of class StaticGray for display
localhost:10.0

This occurs for an XtNvisual of "GrayScale" as well.

Can anyone offer pointers on where to go next? Perhaps the problem resides
more in the server than the above code. I think this unlikely, since other
imaging applications display gray very well on the same server.

Thanks,

Vince Virgilio

************************************
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information. In such a case, you may not
copy or deliver this message to anyone. You should destroy this message and
kindly notify the sender by reply email. Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT.
************************************