From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103734,fe9dd44acd5462d1 X-Google-Attributes: gid103734,public X-Google-Thread: 103376,fe9dd44acd5462d1 X-Google-Attributes: gid103376,public X-Google-Thread: 10b6ac,fe9dd44acd5462d1 X-Google-Attributes: gid10b6ac,public From: jhopper@erinet.com (jim hopper) Subject: Re: Ada and X/Motif Date: 1997/06/04 Message-ID: <5n2pge$6n5@nntp1.erinet.com>#1/1 X-Deja-AN: 246683014 Distribution: inet Sender: -Not-Authenticated-[4123] References: <3394CED4.2BF7@interlog.com> Organization: EriNet Online 513 436-1700 (Voice) XDisclaimer: User not authenticated Newsgroups: comp.lang.ada,comp.windows.x,comp.windows.x.motif Date: 1997-06-04T00:00:00+00:00 List-Id: Have you looked at Xforms?? its a gui builder and library that makes building x gui's very simple. there is a nice extension to it that converts the c code xforms spits out to ada95. its available on a wide variety of platforms (shameless plug : I just ported it to mac for use with gnat on the Mac, download from the xforms site) and has excellent documentation. i know this isn't a direct answer but using this toolkit may allow you to do what you want with less work. http://bragg.phys.uwm.edu/xforms <== xforms home ftp://ocsystems.com/xada/aforms-0.8.11.tar.gz <== aforms source http://www.ocsystems.com/xada/xforms1.html <== x ada web site jim hopper -------- In article <3394CED4.2BF7@interlog.com> markovi@interlog.com writes: > I am programming a user interface in Ada using X/Motif routines. The > interface between X and Ada is implemented through X bindings. > I have the following problem: to create a colormap, allocate colors > and store a color I call consequently the bindings for > XCreateColormap, XAllocColorCells and XStoreColor. When these > functions are called in the main ada routine, they work properly. > 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?