comp.lang.ada
 help / color / mirror / Atom feed
* MOTIF BINDING
@ 1990-09-10 15:32 HC Eng
  1990-09-17 11:59 ` Eric Beser
  0 siblings, 1 reply; 2+ messages in thread
From: HC Eng @ 1990-09-10 15:32 UTC (permalink / raw)


Please refer to the item in Vol 90 Issue 168 about JPL coming up with
a Motif binding.  (Please note that I am very new to Ada.)  In the OSF Motif
toolkit, widgets are treated as objects and callbacks are passed as subprogram
pointers.  I am dying to know how this could be implemented in Ada since Ada
does not have a subprogram type.
Presently I am coding my own "Motif" toolkit in Ada for the IBM RS/6000 and
the stumbling block is the lack of the subprogram type (see Ada LI65).  I am
solving the problem very unsatisfactorily by making the interface layer call
a procedure CALLBACK(W) where W is the widget being activated.  Inside CALLBACK
is a giant IF and ELSIF block to cater for every widget declared in my program.
It is unsatisfactory because everytime I add a new widget, I must amend this
block.
Therefore, if there is something that I don't know that would make the Motif
binding possible, I would be very happy to hear it immediately.

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

end of thread, other threads:[~1990-09-17 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1990-09-10 15:32 MOTIF BINDING HC Eng
1990-09-17 11:59 ` Eric Beser

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