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=-0.8 required=5.0 tests=BAYES_00,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!ut-sally!husc6!mit-eddie!genrad!decvax!ucbvax!kvasir.UUCP!hyland From: hyland@kvasir.UUCP (Steve Hyland) Newsgroups: comp.lang.ada Subject: Re: X and Ada? Message-ID: <8709081625.AA24204@kvasir.esosun.uucp> Date: Tue, 8-Sep-87 12:25:12 EDT Article-I.D.: kvasir.8709081625.AA24204 Posted: Tue Sep 8 12:25:12 1987 Date-Received: Wed, 9-Sep-87 05:48:23 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet List-Id: 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