Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!lll-lcc!pyramid!amiga!jimm From: jimm@amiga.UUCP (James D. Mackraz) Newsgroups: net.micro.amiga Subject: Re: Adding Gadgets to the Top Border Message-ID: <1466@amiga.amiga.UUCP> Date: Sun, 3-Aug-86 19:13:26 EDT Article-I.D.: amiga.1466 Posted: Sun Aug 3 19:13:26 1986 Date-Received: Mon, 4-Aug-86 18:43:23 EDT References: <494@aber-cs.UUCP> Reply-To: jimm@homer.UUCP (Jim Mackraz) Organization: Commodore-Amiga Inc., 983 University Ave #D, Los Gatos CA 95030 Lines: 27 In article <494@aber-cs.UUCP> jjs@aber-cs.UUCP (John Jones-Steele) writes: >References: >Xpath: ukc eagle > >I am having problems with adding gadgets to the top border >of a window. If the window does not have WINDOWDRAG set, there >is no problem, but if WINDOWDRAG is set the gadget comes up >looking as if it is disabled and whenever I try to select it >all that happens is that the window is dragged about. This >happens under 1.1 and 1.2(beta 5). > >Can anybody throw any light on this. All the demos I have seen on this >subject leave TOPBORDER alone. I don't have a demo for you, but you are probably not doing the necessary voodoo to get your gadget to precede the system drag gadget in the gadget list (gadgets select from from to back, head to tail in the gadget list). To do this, you must AddGadget() explicity, it cannot be gotten by the FirstGadget field in the NewWindow. Try setting the 'position' parameter in AddGadget to 0. Be sure also to set the TOPBORDER activation flag in the gadget. Top border gadgets have always been a little weird, esp. when the window is made active/inactive. They may still be a little weird. Good lucks. jimm Commodore-Amiga