comp.lang.ada
 help / color / mirror / Atom feed
From: stt@houdini.camb.inmet.com (Tucker Taft)
Subject: Re: Ada Java question
Date: 1997/02/27
Date: 1997-02-27T00:00:00+00:00	[thread overview]
Message-ID: <E69os4.B94.0.-s@inmet.camb.inmet.com> (raw)
In-Reply-To: 33150EBD.1467@fn3.freenet.tlh.fl.us


Kendal Van Dyke (kendal@fn3.freenet.tlh.fl.us) wrote:

: I am trying to redefine the keyDown event so that I can do something
: when an arrow key is pressed while an applet is running, but I seem to
: be having a problem when I compile  - it's giving me errors saying that
: "Direct name, event, is not visible"

: Here is my code. What's wrong with it?

:   function keyDown(obj : access tank_obj;

:   		   e : event_ptr;

:   		   key : Integer) return boolean is

:   begin

:     CASE key IS

:       WHEN event.UP => return true;

You need to show us the "with" clauses for your code to know whether
"event" is visible or not.  Perhaps you need to write "java.awt.event.UP"
instead of just "event," or include a "use java.awt;" after your
with clause for "java.awt.event."

In general, if you have a compir problem, be sure to include an entire but
minimal test case, and include the error messages as produced by the
compiler.  Otherwise, your potential helpers will have to just guess
at the real problem.

: Any help is of course much appreciated!
:     .                |/                       .
:     .                |\ENDAL                  .
:     . WWW   => http://www.cs.fsu.edu/~vandyke .
:     . EMail => vandyke@cs.fsu.edu             .
:     . Pager => (904) 297-6658                 .

-Tucker Taft   stt@inmet.com   http://www.inmet.com/~stt/
Intermetrics, Inc.  Burlington, MA  USA




  reply	other threads:[~1997-02-27  0:00 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-02-26  0:00 Ada Java question Kendal Van Dyke
1997-02-27  0:00 ` Tucker Taft [this message]
1997-02-28  0:00   ` Ada Java question => clarification Kendal Van Dyke
1997-02-28  0:00     ` Tucker Taft
1997-02-28  0:00       ` Brad Balfour
1997-02-28  0:00         ` Ada Java question => oops!! Kendal Van Dyke
1997-02-28  0:00         ` Ada Java question => clarification Kendal Van Dyke
1997-02-28  0:00           ` Norman H. Cohen
1997-03-01  0:00             ` David Taylor
1997-03-02  0:00               ` Robert Dewar
1997-03-06  0:00                 ` David Taylor
1997-03-08  0:00                   ` tagged type auto-"Use", was " Tom Moran
1997-03-10  0:00                     ` Dennis Reimer
1997-03-09  0:00                   ` Robert Dewar
1997-03-09  0:00                     ` Larry Kilgallen
1997-03-09  0:00                       ` Robert Dewar
1997-03-15  0:00                         ` Matthew Heaney
1997-03-01  0:00           ` Fergus Henderson
1997-03-02  0:00         ` Robert Dewar
1997-03-03  0:00           ` Brad Balfour
1997-03-05  0:00             ` Robert Dewar
1997-03-05  0:00               ` Brad Balfour
1997-02-28  0:00 ` Ada Java question Tom Halliley
replies disabled

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