Path: utzoo!utgpu!watmath!att!dptg!rutgers!iuvax!mailrus!cornell!uw-beaver!rice!sun-spots-request From: jaysun@eng.clemson.edu (Jay Williamson) Newsgroups: comp.sys.sun Subject: Re: Opening a second window Keywords: Windows Message-ID: <1001@brazos.Rice.edu> Date: 21 Aug 89 21:54:34 GMT Organization: Sun-Spots Lines: 26 Approved: Sun-Spots@rice.edu X-Sun-Spots-Digest: Volume 8, Issue 101, message 3 of 16 In article <2835@ssc-vax.UUCP> ssc-vax!dmg@beaver.cs.washington.edu (David Geary) writes: >I open a window (window #1) under SunView using window_create(), and then >a subsequent call to window_main_loop(). If I detect certain events in >the window, I want another window to open (window #2), and receive events >in the new window. When a certain event occurs in window #2, I close the >window, and want to start getting events in window #1 once again. > Try creating your second window (or third, fourth, etc..) at the same time you create your original but set WIN_SHOW, FALSE When you want to see the second window just set WIN_SHOW, TRUE When you want to get rid of the window just set WIN_SHOW, FALSE again Good luck Jay Williamson Engineering Computer Operations jaysun@eng.clemson.edu Clemson University |---------------------------------------------------------| | "A conclusion is the place were you got tired | | of thinking." | | --Arthur Block | |---------------------------------------------------------| Jay Williamson