comp.lang.ada
 help / color / mirror / Atom feed
* gtkada newbie scope advice pls
@ 2002-03-19  0:24 Pheet
  2002-03-19  0:37 ` Ed Falis
  0 siblings, 1 reply; 3+ messages in thread
From: Pheet @ 2002-03-19  0:24 UTC (permalink / 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



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

end of thread, other threads:[~2002-03-19  1:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-19  0:24 gtkada newbie scope advice pls Pheet
2002-03-19  0:37 ` Ed Falis
2002-03-19  1:53   ` Thank you for gtkada newbie scope advice Pheet

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