Rod,
Sorry for my delayed response. The bug I mentioned doesn't affect your ability to capture the entire window. The problem is the viewports that you have set. When I said you'd need to "reset" the viewport, I specifically meant that you'd have to set the viewport to be the entire window:
call setviewport(0, 0, getmaxx(), getmaxy(), .TRUE.)
call writeimagefile(filename=myfile)
There is not currently a function to set the viewport to be the entire window (as it is by default when you call initwindow. You'd have to do it manually as I demonstrated above. The next version of AppGraphics has a subroutine resetviewport that does this automatically.
The writeimagefile subroutine is pretty flexible. If you call it with no options whatsoever, it will request a filename, capture the entire window's contents (provided the viewport is the entire window at this time), and save it to the bitmap file selected by the user. You can optionally specify the filename or the region to capture in the call if you'd prefer. The example "Conway's Game of Life," included with Simply Fortran on the Start tab, implements a call to the writeimagefile subroutine.
Jeff Armstrong
Approximatrix, LLC