Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!news.funet.fi!funic!santra!nntp!s37732v From: s37732v@vipunen.hut.fi (Markus Juhani Aalto) Newsgroups: comp.sys.amiga.programmer Subject: Re: Help on string gadgets necessary Message-ID: Date: 25 Mar 91 09:11:20 GMT References: <1991Mar20.015546.1131@marlin.jcu.edu.au> Sender: news@santra.uucp (Cnews - USENET news system) Organization: Helsinki University of Technology, Finland Lines: 35 In-Reply-To: cpmwc@marlin.jcu.edu.au's message of 20 Mar 91 01:55:46 GMT After playing around with string gadgets for a few weeks I can't get a couple of things to work. 1. Having the cursor appear in a specified gadget ie. not having to select it first. If you are opening a window with string gadget in it, you have to make it active via WINDOWACTIVE flag. Then wait for ACTIVEWINDOW message from IDCMP-port and after that call ActiveGadget()-routine (I don`t remember exact name now, but it should be something like that.) Well, atleast it worked for me! 2. Gadget in general - After OffGadget i have used OnGaget to turn it back on and there is still ghosting in the gadget, the area free of ghosting is where the Gadget Text was, I have tried RefreshGadgets and RefreshGagetList(?) but they seem to have no effect, any ideas much appreciated ! Can`t try it now! But it should work if you first call OnGadget and then RefreshGadgets. If it wont work, try removing gadget first from the list and then calling OnGadget and AddingGadget back to the list and Refreshing them. This might work, but as I said I can`t try it myself now and because Intuition programming isn`t just piece of cake I wont give any promises. -- *********************************************************************** * Markus.Aalto@hut.fi | Only Amiga makes it possible!!!! * * s37732v@vipunen.hut.fi | * * s37732v@puukko.hut.fi | Yeah! It's a sure thing! * * maalto4@otax.hut.fi | :^) * ***********************************************************************