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: 103376,4e180de737833224 X-Google-Attributes: gid103376,public From: stt@houdini.camb.inmet.com (Tucker Taft) Subject: Re: Ada Java question Date: 1997/02/27 Message-ID: #1/1 X-Deja-AN: 221831704 Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.camb.inmet.com References: <33150EBD.1467@fn3.freenet.tlh.fl.us> Organization: Intermetrics, Inc. Newsgroups: comp.lang.ada Date: 1997-02-27T00:00:00+00:00 List-Id: 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