Path: utzoo!attcan!uunet!mcvax!ukc!eagle!rlh2 From: rlh2@eagle.ukc.ac.uk (R.L.Hesketh) Newsgroups: comp.windows.x Subject: Re: X Toolkit Question Keywords: simple answer Message-ID: <4992@eagle.ukc.ac.uk> Date: 18 May 88 09:38:07 GMT References: <2479@mandrill.CWRU.Edu> <8805161424.AA16703@LYRE.MIT.EDU> <10039@agate.BERKELEY.EDU> Reply-To: rlh2@ukc.ac.uk (Richard Hesketh) Organization: Computing Lab, University of Kent at Canterbury, UK. Lines: 28 In article <10039@agate.BERKELEY.EDU> shipley@widow.berkeley.edu (Peter Shipley) writes: > >How does a toolkit program iconify itself? > > >Pete Shipley: static void closewin() { Arg args[1]; XtSetArg(args[0], XtNiconic, (XtArgVal)TRUE); XtSetValues(toplevel, (ArgList)1); } This sets the `iconic' resource of the Shell part of the top level to TRUE. To de-iconify set it to FALSE. Brilliant, eh? Richard -- Richard Hesketh: rlh2@ukc.ac.uk | "Widget programmers do it --- | with class and use a Computing Lab., University of Kent at Canterbury, | little inheritance" Canterbury, Kent, CT2 7NF, England. |