🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Gadget questions

#5744
From: Peter Cherna
Date: Wed, 10 Oct 1990 16:38
34 lines
2196 bytes
In article <1990Oct9.215943.12562@wam.umd.edu> walrus@wam.umd.edu (Udo K Schuermann) writes:
>I know that this subject came through here before, but despite the notes
>that I took and the bits I recall, I can't get ActivateGadget() to work
>(maybe I'm stupid ...)
>
>1. I have two string gadgets (text) attached to a borderless backdrop
>   window.  I wish to activate the first of these gadgets with the
>   ActivateGadget() function, but this function refuses to do the job
>   it seems to be designed for, and continues to return 0 (failure)
>   regardless what I do.

To activate a string gadget, the window itself must be active.  If
you open the window with the ACTIVATE, only some time later does
the window actually become active.  You must wait on the ACTIVEWINDOW
IDCMP message before calling ActivateGadget().

ActivateGadget() works well under those conditions.
>
>2. Also, I'm trying to get the gadget text (as entered by the user) to
>   render with colors 1 on 3 but the gadget seems to insist on colors
>   1 on 0 despite the pen settings in the Screen and Window structures.

In 1.3, you cannot control the pen color of the contents of the
string gadget.  Under 2.0, you may use the StringExtend structure
to do so.

> ._.  Udo Schuermann           "How is American beer similar to making love in

     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.
"Television is a medium because it is neither rare nor well-done."
Technical Details
Message-ID: <15041@cbmvax.commodore.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!timbuk!cs.umn.edu!uc!tut.cis.ohio-state.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!usc!apple!rutgers!bagate!cbmvax!peter
References: <1990Oct9.215943.12562@wam.umd.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!timbuk!cs.umn.edu!uc!tut.cis.ohio-state.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!usc!apple!rutgers!bagate!cbmvax!peter
From: peter@cbmvax.commodore.com (Peter Cherna)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Gadget questions
Keywords: activate gadget help
Message-ID: <15041@cbmvax.commodore.com>
Date: 10 Oct 90 16:38:20 GMT
References: <1990Oct9.215943.12562@wam.umd.edu>
Reply-To: peter@cbmvax.commodore.com (Peter Cherna)
Distribution: comp.sys.amiga.tech
Organization: Commodore, West Chester, PA
Lines: 34