🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #4692

Re: Activating Gadgets in C

#4692
From: Ric Peregrino
Date: Sat, 04 Aug 1990 00:26
19 lines
1363 bytes
 About the string gadgets. If you look in the RKM gadgets chapter,
you'll find ActivateGadget() which you can use to activate the string
gadget only if the window it is in is already active. You could set
ACTIVEWINDOW | INACTIVEWINDOW IDCMP flags to find out about the state
of your window.

  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.

  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?

ric@hpspd
Technical Details
Message-ID: <13580003@hpspdra.HP.COM>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!usc!sdd.hp.com!hplabs!hpl-opus!hpspdra!ric
References: <2384@ryn.esg.dec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!snorkelwacker!usc!sdd.hp.com!hplabs!hpl-opus!hpspdra!ric
From: ric@hpspdra.HP.COM (Ric Peregrino)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Activating Gadgets in C
Message-ID: <13580003@hpspdra.HP.COM>
Date: 4 Aug 90 00:26:13 GMT
References: <2384@ryn.esg.dec.com>
Organization: HP Stanford Park - Palo Alto, CA
Lines: 19