[comp.sys.amiga] Fortran Windows, how much is needed?

antunes@ASTRO.PSU.EDU (Sandy Antunes) (09/10/90)

Hello everyone!  This is a Fortran 77 question for the amiga.  I've
been cruising through my manual and am still having problems creating
windows for my programs!
  Okay, I want the program to be able to call up, at various times,
two half-screen sized windows.  First question:  do I need to set up
a background screen using NewScreen to make windows or will it just
default to the normal (workbench) background?
  Next, to create a window you use (where window is an interger*4)
    window = amiga(OpenWindow,NewWindow)
Well, OpenWIndow is not declared to be anything, and NewWindow is an
array of 48 interger*1.  The manual only lists what elements 1,3,5,7,9,
10,11,15,19,23,27,31,35,39,41,43,45, and 47 are... so, Second question:
do I have to ever worry about what the other array elements are?
  And, thirdly, what are some good values to put in for these elements?
The size ones seem straightforward but Flags, IDCMPFlags, FirstGdgt,
and some of the other pointers aren't very clear to me.
  I guess what I'd love is some sample code that makes a window so I
can figure out what everything is, or else some really good advice as
to what I can set these things to.
  So, if anyone knows what they are doing in F77 or has a good sample of
code that makes a window then allows reads and writes into it (as unit 9,
or do you have to create a new unit number for it?), I'd much appreciate
the help!  Thanks!                          sandy
------------
Sandy Antunes                                antunes@ASTROD.psu.edu   
"Then we'll be off.  But remember, chaps, this is not just a matter of
 life and death... this is a matter of style."