Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-crg!nike!aurora!ames!hplabs!sdcrdcf!burdvax!psuvax1!vu-vlsi!cbmvax!higgin From: higgin@cbmvax.cbm.UUCP (Paul Higginbottom) Newsgroups: net.micro.amiga Subject: Re: Adding Gadgets to the Top Border Message-ID: <566@cbmvax.cbmvax.cbm.UUCP> Date: Sun, 3-Aug-86 14:23:10 EDT Article-I.D.: cbmvax.566 Posted: Sun Aug 3 14:23:10 1986 Date-Received: Mon, 4-Aug-86 07:25:17 EDT References: <494@aber-cs.UUCP> Reply-To: higgin@cbmvax.UUCP (Paul Higginbottom) Organization: Commodore Technology, West Chester, PA Lines: 31 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. >-- >UUCP : { ENGLAND or WALES }!ukc!aber-cs!jjs >JANET: jjs@uk.ac.aber.cs PHONE: +44 970 3111 x 3388 >Post: University College of Wales, Penglais, Aberystwyth, UK, SY23 3BZ. Here's the trick - Add the gadgets after the window is opened at the FRONT of the list. You need to do this because Intuition's own gadgets (e.g. invisible drag gadget) will take precedence over yours because they're nearer to the front of the list (until you add yours at the front). So use the AddGadget routine with position of 0, and you will also need to do a RefreshGadgets() once you've added it. I've done this, and it works. Hope this helps, Paul Higginbottom. Disclaimer: I do not work for Commodore, my opinions are my own, and I probably won't be around to see any replies.