Article View: comp.sys.amiga.tech
Article #4739Re: Activating Gadgets in C
From: Peter Cherna
Date: Mon, 06 Aug 1990 15:25
Date: Mon, 06 Aug 1990 15:25
32 lines
1952 bytes
1952 bytes
In article <13580003@hpspdra.HP.COM> ric@hpspdra.HP.COM (Ric Peregrino) writes:
>
> In using string gadgets I found that after hitting return the text
>entered remains. Clearing the string buffer and RefreshGadget will clear
>it but it will also make the undo buffer unuseable, it seems.
That is the normal correct behavior for a string gadget, so the user
can go back and make further changes. The user shouldn't have to be
forced down a linear path through your user-interface. Let him go back.
The undo buffer holds the contents of the string gadget when the user
began to edit it.
> Also, with a COMMSEQ Q menu pick for quitting your program, with the
>string gadget active causes a funny thing on my A2000 1.3 when a
>program was invoked from a shell; the invoking shell is inacticve and
>can't be activated until the mouse is clicked outside of the shell.
>No big problem just interesting. I tried to RemoveGadget to de-activate
>the string gadget to no avail. How do you de-activate the string gadget?
You cannot deactivate a gadget programmatically. Make sure you aren't
calling ActivateGadget() after you've already closed your window. That
would put Intuition into a limbo-state.
>ric@hpspd
Peter
--
Peter Cherna, Software Engineer, Commodore-Amiga, Inc.
{uunet|rutgers}!cbmvax!peter peter@cbmvax.cbm.commodore.com
My opinions do not necessarily represent the opinions of my employer.
"This is a one line proof...if we start sufficiently far to the left."
Technical Details
Message-ID:
<13640@cbmvax.commodore.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!cbmvax!peterReferences:
<2384@ryn.esg.dec.com> <13580003@hpspdra.HP.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!cbmvax!peter From: peter@cbmvax.commodore.com (Peter Cherna) Newsgroups: comp.sys.amiga.tech Subject: Re: Activating Gadgets in C Message-ID: <13640@cbmvax.commodore.com> Date: 6 Aug 90 15:25:35 GMT References: <2384@ryn.esg.dec.com> <13580003@hpspdra.HP.COM> Reply-To: peter@cbmvax (Peter Cherna) Organization: Commodore, West Chester, PA Lines: 32