Path: utzoo!utgpu!water!watmath!clyde!cbosgd!ihnp4!ptsfa!ames!sdcsvax!ucsdhub!esosun!seismo!uunet!nuchat!sugar!peter
From: peter@sugar.UUCP (Peter da Silva)
Newsgroups: comp.sys.amiga
Subject: Re: ActivateGadget Use (Does it work?)
Message-ID: <1254@sugar.UUCP>
Date: 14 Dec 87 11:02:29 GMT
References: <1861@cup.portal.com>
Organization: Sugar Land UNIX - Houston, TX
Lines: 18

From my Instant Application/Standard File program:

X	if(!(STD_Window = OpenWindow(&STD_NewWindow))) {
X		return 0;
X	}
X
X	/* This optional line will activate a string gadget	*/
X	if ( IntuitionBase->lib_Version > 32 )
X	{
X		ActivateGadget(gadget,STD_Window,0L);
X	}

This works fine. And will work under older versions of Intuition... just
won't have the gadget active. Shamelessly stolen from a sample program
on the Manx disk.
-- 
-- Peter da Silva  `-_-'  ...!hoptoad!academ!uhnix1!sugar!peter
-- Disclaimer: These U aren't mere opinions... these are *values*.