Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!ucbvax!"dwilliam@larry.ATL.GE.COM"@andrew.dnet.ge.com From: "dwilliam@larry.ATL.GE.COM"@andrew.dnet.ge.com Newsgroups: comp.sys.sgi Subject: Re: a simple question Message-ID: <9106122021.AA01037@ge-dab.GE.COM> Date: 12 Jun 91 20:21:37 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The Internet Lines: 46 TP Monks writes: > Date: 4 Jun 91 13:39:19 GMT > >From: TP Monks > Subject: a simple question > Message-Id: <7973@ecs.soton.ac.uk> > Sender: info-iris-request@BRL.MIL > To: info-iris@BRL.MIL > > A simple question for all sg gurus out there : > > how how how do I iconise a wsh from within a program??? > > Thanks > Tim Monks > Southampton University, UK > Since nobody has submitted anything elegant here's my approach; use in anyway that you wish but don't hold me liable for the results. #include #include /* * magic number from NeWS/glwin.ps */ #define MEX_SYNC_TAG 777 /* * toggle the iconified state of a GL window */ void flipiconic (int wid) { extern PSFILE *PostScript; extern int gl_ps_check_sync (void); psio_fprintf (PostScript, "/flipiconic %d gfsend %d tagprint\n", wid, MEX_SYNC_TAG); gl_ps_check_sync (); } -- Dan Williams, Systems & Scientific Software, consultant to: GE Advanced Technology Labs | Internet: dwilliams@atl.ge.com 300 Route 38, Bldg. 145-1 | uucp: ...!mcnc!ge-rtp!atl.ge.com!dwilliams Moorestown, NJ 08057 | Voice: (609) 866-6220