comp.lang.ada
 help / color / mirror / Atom feed
* Re:  X and Ada?
@ 1987-09-08 16:25 Steve Hyland
  0 siblings, 0 replies; 6+ messages in thread
From: Steve Hyland @ 1987-09-08 16:25 UTC (permalink / raw)


Paul:

Under contract to STARS, I am writing the Ada binding for X.
We have come up against some of the questions about call-backs and
a widget's event processing routine(s) that are registered with the
dispatcher. For the purposes of Ada, we realize that the manner in
which X ( specifically the toolkit ) does these things is not
realizable in the Ada version. It IS important to realize that
the normal way in which you process widgets is:

loop
  Next_Event ( THE_DISPLAY, THE_EVENT );
  Dispatch ( THE_EVENT );
end loop;

means that your parent window is always aware of events taking place
in one of its children (ignoring pointer, button and keyboard grabs).
It also means that you must explicitly handle these events (via a
case statement or some other construct).

For the most part, the Ada binding will conform to Version 11 of X.
However, while we may make some departures in the Toolbox which are caused
by the differences between C and Ada, the spirit of the Toolbox will
remain the same.

Steve Hyland
SAIC

^ permalink raw reply	[flat|nested] 6+ messages in thread
* X and Ada?
@ 1987-09-07 15:24 pjatter
  1987-09-10 22:22 ` Steve Hyland
  0 siblings, 1 reply; 6+ messages in thread
From: pjatter @ 1987-09-07 15:24 UTC (permalink / raw)


Newsgroups: comp.windows.x, comp.lang.ada
Subject: X with Ada?
Summary: 
Expires: 
Sender: 
Reply-To: pjatter@sandia.UUCP (Paul Attermeier)
Followup-To: 
Distribution: na
Organization: Sandia Natl Labs, Div. 9224
Keywords: Ada

Is X and Ada a practical combination?  My organization's systems
are currently implemented using C and Sunwindows, but future projects
need to be done using Ada.
Sunwindows makes calls back to the application program which is no
problem when the application is in C, but if it is in Ada you need to
call Ada from C, something I don't know how to do. (vice versa is easy).

From what little I've seen of the X toolkits, it appears that
X makes 'callbacks' to the application program. If X is in C
(which would be acceptable in our 'Ada' system) and the application
is in Ada, it looks like we still have the same problem.

Do we need to wait for an Ada implementation of X? Will such a thing
be available in my lifetime? Am I missing a more obvious solution?

-- 
Paul Attermeier
uucp: ...{ucbvax | gatech}!unmvax!sandia!pjatter
arpanet: pjatter@sandia-2

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~1987-09-18 14:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1987-09-08 16:25 X and Ada? Steve Hyland
  -- strict thread matches above, loose matches on Subject: below --
1987-09-07 15:24 pjatter
1987-09-10 22:22 ` Steve Hyland
1987-09-12 22:13   ` newman
1987-09-15 23:36     ` Bruce Karsh
1987-09-18 14:15     ` lamy

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