tpm@ecs.soton.ac.uk (TP Monks) (06/04/91)
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
"dwilliam@larry.ATL.GE.COM"@andrew.dnet.ge.com (06/13/91)
TP Monks writes: > Date: 4 Jun 91 13:39:19 GMT > >From: TP Monks <mcsun!ukc!icdoc!sot-ecs!tpm@uunet.uu.net> > 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 <stdio.h> #include <psio.h> /* * 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