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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1b9ef2a0f94d7231,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-03-18 16:25:30 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!194.168.222.15.MISMATCH!news5-gui.server.ntli.net!ntli.net!news6-win.server.ntlworld.com.POSTED!not-for-mail Message-ID: <3C96852B.E21649C5@ntlworld.com> From: Pheet Reply-To: psa1@brighton.ac.uk X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: gtkada newbie scope advice pls Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 19 Mar 2002 00:24:11 +0000 NNTP-Posting-Host: 80.1.188.66 X-Complaints-To: abuse@ntlworld.com X-Trace: news6-win.server.ntlworld.com 1016497418 80.1.188.66 (Tue, 19 Mar 2002 00:23:38 GMT) NNTP-Posting-Date: Tue, 19 Mar 2002 00:23:38 GMT Organization: ntlworld News Service Xref: archiver1.google.com comp.lang.ada:21433 Date: 2002-03-19T00:24:11+00:00 List-Id: Hi ppl, I hope someone can advise me on the following: I've installed the windows port of gtkada (1.3.12), and after a bit of persuasion have got gate to work. I'm using glade without any probs. Gate is producing my project files, e.g.: project.adb project_intl.adb project_intl.ads callbacks_project.ads callbacks_project.adb main_window_pkg.ads main_window_pkg.adb main_window_pkg-callbacks.ads main_window_pkg-callbacks.adb Now, where do i put my code for the functionality of the program? The procedures in the main_window_pkg-callbacks body need to be able to "see" my core program data and procedures. Do I: a) Place all my program code in the main window callbacks package body? (Though I anticipate trouble l8r on when I start adding dialogues and other windows) b) Cut'n'paste the generated code into 1 program to avoid scope issues? (My lecturers will love me for that!) c) Make my program code in to a package with memory and With...Use that in the callback bodies??? d) None of the above! I've only being learning Ada for a couple of months and not having any *nix/gtk/c background is hindering my comprehension of the gtk documentation. Any advice, hints, pointers, etc. will be gratefully appreciated, TIA, Pheet