comp.lang.ada
 help / color / mirror / Atom feed
From: mcc@tyrolia.cs.princeton.edu (Martin C. Carlisle)
Subject: Re: Ada and X/Motif
Date: 1997/06/04
Date: 1997-06-04T00:00:00+00:00	[thread overview]
Message-ID: <5n4i9t$6i2$1@cnn.Princeton.EDU> (raw)
In-Reply-To: 3394CED4.2BF7@interlog.com


>If I call any (or all) of the above functions in a separate procedure
>and then call this procedure in the main routine, the XStoreColor
>function does not store the color in the colormap. There is no error
>message, just the function does not do what it is supposed to do. Any
>help?

Given that you don't mention what X binding you are using, this is very
difficult to guess.  I'll venture two suggestions from my experience with
Win32 bindings.

1)  If the binding is yours, you may need to add something like
pragma Convention(Stdcall,XStoreColor);

2)  You may have forgotten to call some important initialization routine
(I had similar behavior under Win32 when I forgot InitCommonControls)

--Martin

-- 
Martin C. Carlisle, Computer Science, US Air Force Academy
mcc@cs.usafa.af.mil, http://www.usafa.af.mil/dfcs/bios/carlisle.html
DISCLAIMER:  This content in no way reflects the opinions, standard or 
policy of the US Air Force Academy or the United States Government.




  parent reply	other threads:[~1997-06-04  0:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-06-03  0:00 Ada and X/Motif markovi
1997-06-04  0:00 ` jim hopper
1997-06-04  0:00 ` Martin C. Carlisle [this message]
1997-06-09  0:00 ` Christopher Green
1997-06-10  0:00   ` Uliyana Markova
1997-06-10  0:00   ` Jeff W. Boote
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox