[comp.sys.apple] Two windows from an NDA

hartkopf@tramp.Colorado.EDU (Jeff Hartkopf) (12/28/89)

What's the recommended procedure for this:  I want to have an NDA open
two separate windows (at separate times); the first window has no
scrollbars or anything, just a close box, and a few buttons; the
second window is a scrolling, resizeable window with text in it.  Now
I don't need to have both windows open at the same time (which I assume
would not work), but at certain points I'll need to close the first
window and then immediately open the second.  I think that somehow I
need to trick the OS into thinking that it's still the same window, or
something, because I tried something like

[in OpenDA]
call NewWindow on first window
SetSysWindow on it
call NewControl2 for some controls
return pointer to window

[in ActionDA]
call TaskMasterDA to handle updates of the window
call function DoOtherWind if the user selects the appropriate button
    in window 1

[function DoOtherWind]
call CloseWindow on old window
call NewWindow on the second window, using the same window pointer
SetSysWindow on it

and this doesn't work.  Anyway, what is the recommended procedure for
this?  Thanks much for any help.


Jeff Hartkopf

Internet:
hartkopf@tramp.Colorado.EDU