Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!pepper!cmcmanis From: cmcmanis%pepper@Sun.COM (Chuck McManis) Newsgroups: comp.sys.amiga Subject: Re: Gadget in the window title bar Message-ID: <47594@sun.uucp> Date: 30 Mar 88 19:35:13 GMT References: <4625@garfield.UUCP> Sender: news@sun.uucp Reply-To: cmcmanis@sun.UUCP (Chuck McManis) Organization: Sun Microsystems, Mountain View Lines: 17 Keywords: gadgets In article <4625@garfield.UUCP> john13@garfield.UUCP (John Russell) writes: >I'm relatively new to gadgets. What's the accepted way to put the gadget in >the title bar, a la the Wordperfect iconify gadget? Can I use the SYSGADGET >flag somehow? A couple of points to know about gadgets. First they stack, that is the one closer to the head of the list will get selected first. Second whenever a gadget is in a border it should have a border flag set in it (TOPBORDER in this case.) You can force your gadget to the front of the list by using AddGList(win,gadget,0); (check the parameters here) but the 0 means I want to be the *first* gadget in the list. -1 means I don't care (and you will be the last gadget in the list). --Chuck McManis uucp: {anywhere}!sun!cmcmanis BIX: cmcmanis ARPAnet: cmcmanis@sun.com These opinions are my own and no one elses, but you knew that didn't you.