comp.lang.ada
 help / color / mirror / Atom feed
From: Pheet <a.pheet@ntlworld.com>
Subject: gtkada newbie scope advice pls
Date: Tue, 19 Mar 2002 00:24:11 +0000
Date: 2002-03-19T00:24:11+00:00	[thread overview]
Message-ID: <3C96852B.E21649C5@ntlworld.com> (raw)

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



             reply	other threads:[~2002-03-19  0:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-19  0:24 Pheet [this message]
2002-03-19  0:37 ` gtkada newbie scope advice pls Ed Falis
2002-03-19  1:53   ` Thank you for gtkada newbie scope advice Pheet
replies disabled

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